From e74416173b24ceb22cdf1435b12263d3c559b701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Gonz=C3=A1lez?= Date: Fri, 25 Feb 2022 17:07:28 +0000 Subject: [PATCH] fix cs --- src/Routing/Middleware/CachedRoutingMiddleware.php | 2 +- tests/App/Application.php | 2 +- tests/App/TestRequestHandler.php | 2 +- tests/App/UnserializableMiddleware.php | 2 +- .../Routing/Middleware/CachedRoutingMiddlewareTest.php | 5 +---- tests/bootstrap.php | 4 ---- 6 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/Routing/Middleware/CachedRoutingMiddleware.php b/src/Routing/Middleware/CachedRoutingMiddleware.php index 3ed66ce..0a7a975 100644 --- a/src/Routing/Middleware/CachedRoutingMiddleware.php +++ b/src/Routing/Middleware/CachedRoutingMiddleware.php @@ -78,4 +78,4 @@ protected function buildRouteCollection(): RouteCollection return $this->prepareRouteCollection(); } -} \ No newline at end of file +} diff --git a/tests/App/Application.php b/tests/App/Application.php index 1d34587..3ebe91f 100644 --- a/tests/App/Application.php +++ b/tests/App/Application.php @@ -48,4 +48,4 @@ public function handle(ServerRequestInterface $request): ResponseInterface { return new Response(); } -} \ No newline at end of file +} diff --git a/tests/App/TestRequestHandler.php b/tests/App/TestRequestHandler.php index e36d137..1b0b684 100644 --- a/tests/App/TestRequestHandler.php +++ b/tests/App/TestRequestHandler.php @@ -25,4 +25,4 @@ public function handle(ServerRequestInterface $request): ResponseInterface { return new Response(); } -} \ No newline at end of file +} diff --git a/tests/App/UnserializableMiddleware.php b/tests/App/UnserializableMiddleware.php index c9b6046..6479677 100644 --- a/tests/App/UnserializableMiddleware.php +++ b/tests/App/UnserializableMiddleware.php @@ -31,4 +31,4 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface { return $request; } -} \ No newline at end of file +} diff --git a/tests/TestCase/Routing/Middleware/CachedRoutingMiddlewareTest.php b/tests/TestCase/Routing/Middleware/CachedRoutingMiddlewareTest.php index cdd27e1..9139123 100644 --- a/tests/TestCase/Routing/Middleware/CachedRoutingMiddlewareTest.php +++ b/tests/TestCase/Routing/Middleware/CachedRoutingMiddlewareTest.php @@ -14,13 +14,10 @@ namespace CakeDC\CachedRouting\Test\TestCase\Routing\Middleware; use Cake\Cache\Cache; -use Cake\Core\Configure; -use Cake\Http\Response; use Cake\Http\ServerRequestFactory; use Cake\Routing\Exception\FailedRouteCacheException; use Cake\Routing\RouteBuilder; use Cake\Routing\RouteCollection; -use Cake\Routing\Router; use Cake\TestSuite\TestCase; use CakeDC\CachedRouting\Routing\Middleware\CachedRoutingMiddleware; use CakeDC\CachedRouting\Test\App\Application; @@ -79,4 +76,4 @@ public function testFailedRouteCache(): void $this->expectExceptionMessage('Unable to cache route collection.'); $middleware->process($request, new TestRequestHandler()); } -} \ No newline at end of file +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a31cfd8..907a025 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -11,10 +11,6 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -use Cake\Core\Configure; -use Cake\Mailer\Email; -use Cake\Utility\Security; - $findRoot = function () { $root = dirname(__DIR__); if (is_dir($root . '/vendor/cakephp/cakephp')) {