diff --git a/src/BigEndianNBTStream.php b/src/BigEndianNBTStream.php index e762a88..696ae6c 100644 --- a/src/BigEndianNBTStream.php +++ b/src/BigEndianNBTStream.php @@ -23,16 +23,12 @@ namespace pocketmine\nbt; +use pocketmine\utils\Binary; use function array_values; use function assert; use function count; use function pack; use function unpack; -#ifndef COMPILE -use pocketmine\utils\Binary; -#endif - -#include class BigEndianNBTStream extends NBTStream{ diff --git a/src/LittleEndianNBTStream.php b/src/LittleEndianNBTStream.php index 9c8ebdc..add3e7c 100644 --- a/src/LittleEndianNBTStream.php +++ b/src/LittleEndianNBTStream.php @@ -23,16 +23,12 @@ namespace pocketmine\nbt; +use pocketmine\utils\Binary; use function array_values; use function assert; use function count; use function pack; use function unpack; -#ifndef COMPILE -use pocketmine\utils\Binary; -#endif - -#include class LittleEndianNBTStream extends NBTStream{ diff --git a/src/NBTStream.php b/src/NBTStream.php index 35780b6..644d281 100644 --- a/src/NBTStream.php +++ b/src/NBTStream.php @@ -31,6 +31,8 @@ use pocketmine\nbt\tag\ListTag; use pocketmine\nbt\tag\NamedTag; use pocketmine\nbt\tag\StringTag; +use pocketmine\utils\Binary; +use pocketmine\utils\BinaryDataException; use function call_user_func; use function is_array; use function is_bool; @@ -42,12 +44,6 @@ use function substr; use function zlib_decode; use function zlib_encode; -#ifndef COMPILE -use pocketmine\utils\Binary; -#endif -use pocketmine\utils\BinaryDataException; - -#include /** * Base Named Binary Tag encoder/decoder diff --git a/src/NetworkLittleEndianNBTStream.php b/src/NetworkLittleEndianNBTStream.php index d976080..4d392a8 100644 --- a/src/NetworkLittleEndianNBTStream.php +++ b/src/NetworkLittleEndianNBTStream.php @@ -23,13 +23,9 @@ namespace pocketmine\nbt; +use pocketmine\utils\Binary; use function count; use function strlen; -#ifndef COMPILE -use pocketmine\utils\Binary; -#endif - -#include class NetworkLittleEndianNBTStream extends LittleEndianNBTStream{ diff --git a/src/tag/ByteArrayTag.php b/src/tag/ByteArrayTag.php index 46e89cc..a9d3f25 100644 --- a/src/tag/ByteArrayTag.php +++ b/src/tag/ByteArrayTag.php @@ -28,8 +28,6 @@ use pocketmine\nbt\ReaderTracker; use function strlen; -#include - class ByteArrayTag extends NamedTag{ /** @var string */ private $value; diff --git a/src/tag/ByteTag.php b/src/tag/ByteTag.php index fa5c9c8..802dd53 100644 --- a/src/tag/ByteTag.php +++ b/src/tag/ByteTag.php @@ -27,8 +27,6 @@ use pocketmine\nbt\NBTStream; use pocketmine\nbt\ReaderTracker; -#include - class ByteTag extends NamedTag{ /** @var int */ private $value; diff --git a/src/tag/CompoundTag.php b/src/tag/CompoundTag.php index a9661d6..15f5ee1 100644 --- a/src/tag/CompoundTag.php +++ b/src/tag/CompoundTag.php @@ -39,8 +39,6 @@ use function reset; use function str_repeat; -#include - /** * @phpstan-implements \ArrayAccess * @phpstan-implements \Iterator diff --git a/src/tag/DoubleTag.php b/src/tag/DoubleTag.php index f609fcb..e312fc0 100644 --- a/src/tag/DoubleTag.php +++ b/src/tag/DoubleTag.php @@ -27,8 +27,6 @@ use pocketmine\nbt\NBTStream; use pocketmine\nbt\ReaderTracker; -#include - class DoubleTag extends NamedTag{ /** @var float */ private $value; diff --git a/src/tag/FloatTag.php b/src/tag/FloatTag.php index 36df6ed..c04a9ce 100644 --- a/src/tag/FloatTag.php +++ b/src/tag/FloatTag.php @@ -28,8 +28,6 @@ use pocketmine\nbt\ReaderTracker; use pocketmine\utils\Binary; -#include - class FloatTag extends NamedTag{ /** @var float */ private $value; diff --git a/src/tag/IntArrayTag.php b/src/tag/IntArrayTag.php index 438d5fa..e620947 100644 --- a/src/tag/IntArrayTag.php +++ b/src/tag/IntArrayTag.php @@ -32,8 +32,6 @@ use function is_int; use function str_repeat; -#include - class IntArrayTag extends NamedTag{ /** @var int[] */ private $value; diff --git a/src/tag/IntTag.php b/src/tag/IntTag.php index c1ffc62..73e2781 100644 --- a/src/tag/IntTag.php +++ b/src/tag/IntTag.php @@ -27,8 +27,6 @@ use pocketmine\nbt\NBTStream; use pocketmine\nbt\ReaderTracker; -#include - class IntTag extends NamedTag{ /** @var int */ private $value; diff --git a/src/tag/ListTag.php b/src/tag/ListTag.php index a528d9f..fcf49ce 100644 --- a/src/tag/ListTag.php +++ b/src/tag/ListTag.php @@ -31,8 +31,6 @@ use function is_object; use function str_repeat; -#include - /** * @phpstan-implements \ArrayAccess * @phpstan-implements \Iterator diff --git a/src/tag/LongTag.php b/src/tag/LongTag.php index 8b45175..d5f4d0d 100644 --- a/src/tag/LongTag.php +++ b/src/tag/LongTag.php @@ -27,8 +27,6 @@ use pocketmine\nbt\NBTStream; use pocketmine\nbt\ReaderTracker; -#include - class LongTag extends NamedTag{ /** @var int */ private $value; diff --git a/src/tag/ShortTag.php b/src/tag/ShortTag.php index 7c3c5d6..12cd403 100644 --- a/src/tag/ShortTag.php +++ b/src/tag/ShortTag.php @@ -27,8 +27,6 @@ use pocketmine\nbt\NBTStream; use pocketmine\nbt\ReaderTracker; -#include - class ShortTag extends NamedTag{ /** @var int */ private $value; diff --git a/src/tag/StringTag.php b/src/tag/StringTag.php index 7911b6a..6ba7f44 100644 --- a/src/tag/StringTag.php +++ b/src/tag/StringTag.php @@ -28,8 +28,6 @@ use pocketmine\nbt\ReaderTracker; use function strlen; -#include - class StringTag extends NamedTag{ /** @var string */ private $value;