From 4f52e1acc0eef78fdd1f2ec673f702cf7659762f Mon Sep 17 00:00:00 2001 From: Austin Collier Date: Fri, 15 Mar 2024 08:59:07 -0600 Subject: [PATCH] phpcs fixes --- tests/RouterTest.php | 4 ++-- tests/server/index.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/RouterTest.php b/tests/RouterTest.php index f18eaba..5f5abcd 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php @@ -233,7 +233,7 @@ class RouterTest extends TestCase $this->router->map('/わたしはひとです/@name', function ($name) { echo $name; }); - $this->request->url = '/'.urlencode('わたしはひとです').'/'.urlencode('ええ'); + $this->request->url = '/' . urlencode('わたしはひとです') . '/' . urlencode('ええ'); $this->check('ええ'); } @@ -244,7 +244,7 @@ class RouterTest extends TestCase $this->router->map('/категория/@name:[абвгдеёжзийклмнопрстуфхцчшщъыьэюя]+', function ($name) { echo $name; }); - $this->request->url = '/'.urlencode('категория').'/'.urlencode('цветя'); + $this->request->url = '/' . urlencode('категория') . '/' . urlencode('цветя'); $this->check('цветя'); } diff --git a/tests/server/index.php b/tests/server/index.php index d88ac85..f00144f 100644 --- a/tests/server/index.php +++ b/tests/server/index.php @@ -132,12 +132,12 @@ Flight::group('', function () { // Test 16: UTF8 Chars in url with utf8 params Flight::route('/わたしはひとです/@name', function ($name) { - echo 'Route text: This route status is that it '.($name === 'ええ' ? 'succeeded' : 'failed').' URL Param: '.$name.''; + echo 'Route text: This route status is that it ' . ($name === 'ええ' ? 'succeeded' : 'failed') . ' URL Param: ' . $name . ''; }); // Test 17: Slash in param Flight::route('/redirect/@id', function ($id) { - echo 'Route text: This route status is that it '.($id === 'before/after' ? 'succeeded' : 'failed').' URL Param: '.$id.''; + echo 'Route text: This route status is that it ' . ($id === 'before/after' ? 'succeeded' : 'failed') . ' URL Param: ' . $id . ''; }); }, [ new LayoutMiddleware() ]);