@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | $middlewareQueue->insertBefore( |
| 66 | 66 | RoutingMiddleware::class, |
| 67 | - new I18nMiddleware((array)Configure::read('I18n', [])) |
|
| 67 | + new I18nMiddleware((array)Configure::read('I18n', [ ])) |
|
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | 70 | return $middlewareQueue; |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | * @var array |
| 56 | 56 | */ |
| 57 | 57 | protected $_defaultConfig = [ |
| 58 | - 'match' => [], |
|
| 59 | - 'startWith' => [], |
|
| 58 | + 'match' => [ ], |
|
| 59 | + 'startWith' => [ ], |
|
| 60 | 60 | 'switchLangUrl' => null, |
| 61 | 61 | 'cookie' => [ |
| 62 | 62 | 'name' => null, |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @param array $config Configuration. |
| 72 | 72 | */ |
| 73 | - public function __construct(array $config = []) |
|
| 73 | + public function __construct(array $config = [ ]) |
|
| 74 | 74 | { |
| 75 | 75 | $this->setConfig($config); |
| 76 | 76 | } |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | $locale = array_search($new, $this->getLocales()); |
| 222 | 222 | if ($locale === false) { |
| 223 | - throw new BadRequestException(__('Lang "{0}" not supported', [$new])); |
|
| 223 | + throw new BadRequestException(__('Lang "{0}" not supported', [ $new ])); |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | $response = (new Response()) |