From d2c50bb760f4a62164504643d1f70da3a49a815e Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 13 Aug 2023 20:33:41 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Collector/Web/RequestCollector.php | 2 -- src/Collector/Web/WebAppInfoCollector.php | 2 -- src/Helper/StreamWrapper/StreamWrapper.php | 2 +- src/Helper/StreamWrapper/StreamWrapperInterface.php | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Collector/Web/RequestCollector.php b/src/Collector/Web/RequestCollector.php index d9447eee..225b15b4 100644 --- a/src/Collector/Web/RequestCollector.php +++ b/src/Collector/Web/RequestCollector.php @@ -13,8 +13,6 @@ use Yiisoft\Yii\Debug\Collector\CollectorTrait; use Yiisoft\Yii\Debug\Collector\SummaryCollectorInterface; -use function is_object; - final class RequestCollector implements SummaryCollectorInterface { use CollectorTrait; diff --git a/src/Collector/Web/WebAppInfoCollector.php b/src/Collector/Web/WebAppInfoCollector.php index 6d93240b..7866b8f0 100644 --- a/src/Collector/Web/WebAppInfoCollector.php +++ b/src/Collector/Web/WebAppInfoCollector.php @@ -11,8 +11,6 @@ use Yiisoft\Yii\Debug\Collector\CollectorTrait; use Yiisoft\Yii\Debug\Collector\SummaryCollectorInterface; -use function is_object; - final class WebAppInfoCollector implements SummaryCollectorInterface { use CollectorTrait; diff --git a/src/Helper/StreamWrapper/StreamWrapper.php b/src/Helper/StreamWrapper/StreamWrapper.php index d3e2a945..0ac64a7f 100644 --- a/src/Helper/StreamWrapper/StreamWrapper.php +++ b/src/Helper/StreamWrapper/StreamWrapper.php @@ -25,7 +25,7 @@ final class StreamWrapper implements StreamWrapperInterface public ?string $filename = null; /** - * @var resource|false + * @var false|resource */ public $stream = false; diff --git a/src/Helper/StreamWrapper/StreamWrapperInterface.php b/src/Helper/StreamWrapper/StreamWrapperInterface.php index 3aba08d0..649ef453 100644 --- a/src/Helper/StreamWrapper/StreamWrapperInterface.php +++ b/src/Helper/StreamWrapper/StreamWrapperInterface.php @@ -24,7 +24,7 @@ public function stream_eof(): bool; public function stream_seek(int $offset, int $whence = SEEK_SET): bool; /** - * @return resource|false + * @return false|resource */ public function stream_cast(int $castAs);