From ac4bca35a32aee12bec2c6dea223cd85fa24e6d6 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 29 May 2017 21:13:10 +0200 Subject: [PATCH] Lint --- classes/LocaleMiddleware.php | 3 ++- tests/LocaleMiddlewareTest.php | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/LocaleMiddleware.php b/classes/LocaleMiddleware.php index 3a743e0..d885acf 100644 --- a/classes/LocaleMiddleware.php +++ b/classes/LocaleMiddleware.php @@ -2,6 +2,7 @@ /** * LocaleMiddleware class. */ + namespace Alltube; use Slim\Http\Request; @@ -41,7 +42,7 @@ class LocaleMiddleware } /** - * Main middleware function + * Main middleware function. * * @param Request $request PSR request * @param Response $response PSR response diff --git a/tests/LocaleMiddlewareTest.php b/tests/LocaleMiddlewareTest.php index 1f5e690..d350d3f 100644 --- a/tests/LocaleMiddlewareTest.php +++ b/tests/LocaleMiddlewareTest.php @@ -15,7 +15,6 @@ use Slim\Http\Response; */ class LocaleMiddlewareTest extends \PHPUnit_Framework_TestCase { - /** * Prepare tests. */ @@ -32,8 +31,8 @@ class LocaleMiddlewareTest extends \PHPUnit_Framework_TestCase public function testTestLocale() { $locale = [ - 'language'=>'fr', - 'region'=>'FR', + 'language'=> 'fr', + 'region' => 'FR', ]; $this->assertEquals('fr_FR', $this->middleware->testLocale($locale)); } @@ -46,8 +45,8 @@ class LocaleMiddlewareTest extends \PHPUnit_Framework_TestCase public function testLocaleWithWrongLocale() { $locale = [ - 'language'=>'foo', - 'region'=>'BAR' + 'language'=> 'foo', + 'region' => 'BAR', ]; $this->assertNull($this->middleware->testLocale($locale)); $this->assertNull($this->middleware->testLocale([]));