From 3d03bb1301a654bd582bd76b074ed8c00f0b2e66 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 15 Sep 2022 12:01:26 +0100 Subject: [PATCH] Fix CS --- src/entity/effect/Effect.php | 1 - src/network/mcpe/cache/ChunkCache.php | 2 -- tests/phpunit/block/BrewingStandTest.php | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/entity/effect/Effect.php b/src/entity/effect/Effect.php index 442028d4c..cce009733 100644 --- a/src/entity/effect/Effect.php +++ b/src/entity/effect/Effect.php @@ -38,7 +38,6 @@ class Effect{ * @param Translatable|string $name Translation key used for effect name * @param Color $color Color of bubbles given by this effect * @param bool $bad Whether the effect is harmful - * @param int $defaultDuration * @param bool $hasBubbles Whether the effect has potion bubbles. Some do not (e.g. Instant Damage has its own particles instead of bubbles) */ public function __construct( diff --git a/src/network/mcpe/cache/ChunkCache.php b/src/network/mcpe/cache/ChunkCache.php index dae5e27d6..15b696945 100644 --- a/src/network/mcpe/cache/ChunkCache.php +++ b/src/network/mcpe/cache/ChunkCache.php @@ -43,8 +43,6 @@ class ChunkCache implements ChunkListener{ /** * Fetches the ChunkCache instance for the given world. This lazily creates cache systems as needed. - * - * @return ChunkCache */ public static function getInstance(World $world, Compressor $compressor) : self{ $worldId = spl_object_id($world); diff --git a/tests/phpunit/block/BrewingStandTest.php b/tests/phpunit/block/BrewingStandTest.php index f812ffdaf..c61a1db6d 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 array_values; use function count; class BrewingStandTest extends TestCase{