@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | * @var array |
47 | 47 | */ |
48 | 48 | protected $_defaultConfig = [ |
49 | - 'match' => [], |
|
50 | - 'startWith' => [], |
|
49 | + 'match' => [ ], |
|
50 | + 'startWith' => [ ], |
|
51 | 51 | 'switchLangUrl' => null, |
52 | 52 | 'cookie' => [ |
53 | 53 | 'name' => null, |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @param array $config Configuration. |
63 | 63 | */ |
64 | - public function __construct(array $config = []) |
|
64 | + public function __construct(array $config = [ ]) |
|
65 | 65 | { |
66 | 66 | $this->setConfig($config); |
67 | 67 | } |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | |
214 | 214 | $locale = array_search($new, $this->getLocales()); |
215 | 215 | if ($locale === false) { |
216 | - throw new BadRequestException(__('Lang "{0}" not supported', [$new])); |
|
216 | + throw new BadRequestException(__('Lang "{0}" not supported', [ $new ])); |
|
217 | 217 | } |
218 | 218 | $response = $this->getResponseWithCookie($response, $locale); |
219 | 219 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function getLocales() : array |
43 | 43 | { |
44 | - return (array)Configure::read('I18n.locales', []); |
|
44 | + return (array)Configure::read('I18n.locales', [ ]); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function getLanguages() : array |
55 | 55 | { |
56 | - return (array)Configure::read('I18n.languages', []); |
|
56 | + return (array)Configure::read('I18n.languages', [ ]); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |