Completed
Push — master ( c72de8...38327d )
by Stefano
20s queued 13s
created
src/Middleware/I18nMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Core/I18nTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.