strip extra blank lines (php-cs-fixer)

This commit is contained in:
Dylan K. Taylor
2020-01-22 15:14:10 +00:00
parent 8d7a364b29
commit 055b13a6cf
149 changed files with 0 additions and 188 deletions

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity;
interface Ageable{
public function isBaby() : bool;
}

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
abstract class Animal extends Living implements Ageable{

View File

@@ -988,7 +988,6 @@ abstract class Entity{
return true;
}
$this->timings->startTiming();
if($this->hasMovementUpdate()){
@@ -1017,7 +1016,6 @@ abstract class Entity{
$hasUpdate = $this->entityBaseTick($tickDiff);
Timings::$timerEntityBaseTick->stopTiming();
$this->timings->stopTiming();
//if($this->isStatic())
@@ -1188,7 +1186,6 @@ abstract class Entity{
$moveBB->offset(0, 0, $dz);
if($this->stepHeight > 0 and $fallingFlag and ($movX != $dx or $movZ != $dz)){
$cx = $dx;
$cy = $dy;

View File

@@ -231,7 +231,6 @@ final class EntityFactory{
throw new \InvalidArgumentException("Entity $class is not registered");
}
/**
* Helper function which creates minimal NBT needed to spawn an entity.
*/

View File

@@ -227,7 +227,6 @@ class ExperienceManager{
$this->totalXp = $amount;
}
/**
* Returns whether the human can pickup XP orbs (checks cooldown time)
*/

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity;
interface Explosive{
public function explode() : void;

View File

@@ -203,7 +203,6 @@ abstract class Living extends Entity{
return $nbt;
}
public function hasLineOfSight(Entity $entity) : bool{
//TODO: head height
return true;

View File

@@ -79,7 +79,6 @@ class Squid extends WaterAnimal{
return new Vector3(mt_rand(-1000, 1000) / 1000, mt_rand(-500, 500) / 1000, mt_rand(-1000, 1000) / 1000);
}
protected function entityBaseTick(int $tickDiff = 1) : bool{
if($this->closed){
return false;

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity\effect;
use pocketmine\utils\Color;
use pocketmine\utils\RegistryTrait;
use function assert;

View File

@@ -80,7 +80,6 @@ class ItemEntity extends Entity{
$this->owner = $nbt->getString("Owner", $this->owner);
$this->thrower = $nbt->getString("Thrower", $this->thrower);
$itemTag = $nbt->getCompoundTag("Item");
if($itemTag === null){
throw new \UnexpectedValueException("Invalid " . get_class($this) . " entity: expected \"Item\" NBT tag not found");
@@ -91,7 +90,6 @@ class ItemEntity extends Entity{
throw new \UnexpectedValueException("Item for " . get_class($this) . " is invalid");
}
(new ItemSpawnEvent($this))->call();
}

View File

@@ -86,7 +86,6 @@ class PaintingMotive{
/** @var int */
protected $height;
public function __construct(int $width, int $height, string $name){
$this->name = $name;
$this->width = $width;

View File

@@ -51,7 +51,6 @@ class PrimedTNT extends Entity implements Explosive{
public $canCollide = false;
public function attack(EntityDamageEvent $source) : void{
if($source->getCause() === EntityDamageEvent::CAUSE_VOID){
parent::attack($source);
@@ -66,7 +65,6 @@ class PrimedTNT extends Entity implements Explosive{
$this->getWorld()->addSound($this->location, new IgniteSound());
}
public function canCollideWith(Entity $entity) : bool{
return false;
}

View File

@@ -261,7 +261,6 @@ abstract class Projectile extends Entity{
$this->checkChunks();
$this->checkBlockCollision();
Timings::$entityMoveTimer->stopTiming();
}

View File

@@ -23,7 +23,6 @@ declare(strict_types=1);
namespace pocketmine\entity\projectile;
interface ProjectileSource{
}