diff --git a/src/CrashDump.php b/src/CrashDump.php index 0c3de647a..5d813eb0e 100644 --- a/src/CrashDump.php +++ b/src/CrashDump.php @@ -23,8 +23,8 @@ declare(strict_types=1); namespace pocketmine; -use pocketmine\errorhandler\ErrorTypeToStringMap; use Composer\InstalledVersions; +use pocketmine\errorhandler\ErrorTypeToStringMap; use pocketmine\network\mcpe\protocol\ProtocolInfo; use pocketmine\plugin\PluginBase; use pocketmine\plugin\PluginManager; diff --git a/src/world/World.php b/src/world/World.php index a3a05d98e..eb5a6e39e 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -91,7 +91,6 @@ use function floor; use function get_class; use function gettype; use function is_a; -use function is_array; use function is_object; use function lcg_value; use function max; diff --git a/tests/phpunit/block/BrewingStandTest.php b/tests/phpunit/block/BrewingStandTest.php index 62eb497d8..092a34ead 100644 --- a/tests/phpunit/block/BrewingStandTest.php +++ b/tests/phpunit/block/BrewingStandTest.php @@ -25,6 +25,7 @@ namespace pocketmine\block; use PHPUnit\Framework\TestCase; use pocketmine\block\utils\BrewingStandSlot; +use function count; class BrewingStandTest extends TestCase{ diff --git a/tests/phpunit/plugin/ApiVersionTest.php b/tests/phpunit/plugin/ApiVersionTest.php index c6d8d3743..ecc3a8a2b 100644 --- a/tests/phpunit/plugin/ApiVersionTest.php +++ b/tests/phpunit/plugin/ApiVersionTest.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace pocketmine\plugin; use PHPUnit\Framework\TestCase; +use function sort; class ApiVersionTest extends TestCase{ diff --git a/tests/phpunit/utils/CloningRegistryTraitTest.php b/tests/phpunit/utils/CloningRegistryTraitTest.php index 8151481a3..69ca0a411 100644 --- a/tests/phpunit/utils/CloningRegistryTraitTest.php +++ b/tests/phpunit/utils/CloningRegistryTraitTest.php @@ -24,7 +24,6 @@ declare(strict_types=1); namespace pocketmine\utils; use PHPUnit\Framework\TestCase; -use pocketmine\block\VanillaBlocks; final class CloningRegistryTraitTest extends TestCase{