Passed
Pull Request — master (#27)
by Alberto
18:23
created
src/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Middleware/I18nMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())
Please login to merge, or discard this patch.