diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 01a6e52c02..6fb3645100 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -75,6 +75,7 @@ return (new PhpCsFixer\Config) 'return_type_declaration' => [ 'space_before' => 'one' ], + 'single_blank_line_at_eof' => true, 'single_import_per_statement' => true, 'strict_param' => true, 'unary_operator_spaces' => true, diff --git a/src/pocketmine/entity/InvalidSkinException.php b/src/pocketmine/entity/InvalidSkinException.php index 65ad5cf176..43aef8f10c 100644 --- a/src/pocketmine/entity/InvalidSkinException.php +++ b/src/pocketmine/entity/InvalidSkinException.php @@ -25,4 +25,4 @@ namespace pocketmine\entity; final class InvalidSkinException extends \InvalidArgumentException{ -} \ No newline at end of file +} diff --git a/src/pocketmine/network/mcpe/protocol/types/PersonaSkinPiece.php b/src/pocketmine/network/mcpe/protocol/types/PersonaSkinPiece.php index bb22a13507..a671201d98 100644 --- a/src/pocketmine/network/mcpe/protocol/types/PersonaSkinPiece.php +++ b/src/pocketmine/network/mcpe/protocol/types/PersonaSkinPiece.php @@ -74,4 +74,4 @@ final class PersonaSkinPiece{ public function getProductId() : string{ return $this->productId; } -} \ No newline at end of file +} diff --git a/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapInfo.php b/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapInfo.php index d8934d7441..df5526337a 100644 --- a/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapInfo.php +++ b/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapInfo.php @@ -86,4 +86,4 @@ class SubChunkPacketHeightMapInfo{ } return true; } -} \ No newline at end of file +} diff --git a/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapType.php b/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapType.php index 7b1d4105d0..74c33213aa 100644 --- a/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapType.php +++ b/src/pocketmine/network/mcpe/protocol/types/SubChunkPacketHeightMapType.php @@ -29,4 +29,4 @@ final class SubChunkPacketHeightMapType{ public const DATA = 1; public const ALL_TOO_HIGH = 2; public const ALL_TOO_LOW = 3; -} \ No newline at end of file +} diff --git a/src/pocketmine/network/mcpe/protocol/types/SubChunkRequestResult.php b/src/pocketmine/network/mcpe/protocol/types/SubChunkRequestResult.php index 7a52d319f1..a36709dc48 100644 --- a/src/pocketmine/network/mcpe/protocol/types/SubChunkRequestResult.php +++ b/src/pocketmine/network/mcpe/protocol/types/SubChunkRequestResult.php @@ -31,4 +31,4 @@ final class SubChunkRequestResult{ public const WRONG_DIMENSION = 3; public const NULL_PLAYER = 4; public const Y_INDEX_OUT_OF_BOUNDS = 5; -} \ No newline at end of file +} diff --git a/src/pocketmine/utils/SingletonTrait.php b/src/pocketmine/utils/SingletonTrait.php index 99e30e41cc..ee63cbb9cb 100644 --- a/src/pocketmine/utils/SingletonTrait.php +++ b/src/pocketmine/utils/SingletonTrait.php @@ -45,4 +45,4 @@ trait SingletonTrait{ public static function reset() : void{ self::$instance = null; } -} \ No newline at end of file +}