From bbe44035e1b89ab2a6ea339c3d07f789192fc9aa Mon Sep 17 00:00:00 2001 From: doyouhaobaby <635750556@qq.com> Date: Sun, 19 Jul 2020 13:31:13 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Leevel/Kernel/ExceptionRuntime.php | 2 +- tests/Database/SelectTest.php | 32 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Leevel/Kernel/ExceptionRuntime.php b/src/Leevel/Kernel/ExceptionRuntime.php index a7f782b4e..1d1f60fc4 100644 --- a/src/Leevel/Kernel/ExceptionRuntime.php +++ b/src/Leevel/Kernel/ExceptionRuntime.php @@ -28,8 +28,8 @@ use Leevel\Kernel\Exception\NotFoundHttpException; use Leevel\Log\ILog; use Leevel\Router\RouterNotFoundException; -use Leevel\Support\Arr\convert_json; use function Leevel\Support\Arr\convert_json; +use Leevel\Support\Arr\convert_json; use Leevel\Support\Arr\should_json; use function Leevel\Support\Arr\should_json; use NunoMaduro\Collision\Provider as CollisionProvider; diff --git a/tests/Database/SelectTest.php b/tests/Database/SelectTest.php index 6d41edab4..2c5dbe1c9 100644 --- a/tests/Database/SelectTest.php +++ b/tests/Database/SelectTest.php @@ -950,15 +950,15 @@ public function testPage(): void $this->assertSame( $data, $this->varJson( - $page->toArray()['page'] - ) + $page->toArray()['page'] + ) ); $this->assertSame( $data, $this->varJson( - $page->jsonSerialize()['page'] - ) + $page->jsonSerialize()['page'] + ) ); $data = <<<'eot' @@ -1058,15 +1058,15 @@ public function testPageWithCondition(): void $this->assertSame( $data, $this->varJson( - $page->toArray()['page'] - ) + $page->toArray()['page'] + ) ); $this->assertSame( $data, $this->varJson( - $page->jsonSerialize()['page'] - ) + $page->jsonSerialize()['page'] + ) ); $data = <<<'eot' @@ -1160,15 +1160,15 @@ public function testPageMacro(): void $this->assertSame( $data, $this->varJson( - $page->toArray()['page'] - ) + $page->toArray()['page'] + ) ); $this->assertSame( $data, $this->varJson( - $page->jsonSerialize()['page'] - ) + $page->jsonSerialize()['page'] + ) ); $data = <<<'eot' @@ -1262,15 +1262,15 @@ public function testPagePrevNext(): void $this->assertSame( $data, $this->varJson( - $page->toArray()['page'] - ) + $page->toArray()['page'] + ) ); $this->assertSame( $data, $this->varJson( - $page->jsonSerialize()['page'] - ) + $page->jsonSerialize()['page'] + ) ); $data = <<<'eot'