Lint
This commit is contained in:
parent
68b2cca899
commit
ac4bca35a3
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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([]));
|
||||
|
|
Loading…
Reference in a new issue