Test Setup Failed
Pull Request — master (#34)
by Frédéric
09:16
created
src/LocaleConfig.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
     protected function getOptionOrConfig(string $key, array $options)
22 22
     {
23 23
         return isset($options[$key]) ?
24
-            $options[$key] :
25
-            $this->getConfig($key);
24
+            $options[$key] : $this->getConfig($key);
26 25
     }
27 26
 
28 27
     public function getConfig(string $key)
Please login to merge, or discard this patch.
src/Routing/ResourceRegistrar.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
         $routeCollection = $this->$addResourceMethod($name, $base, $controller, $options);
140 140
 
141 141
         $routeArray = is_a($routeCollection, RouteCollection::class) ?
142
-            $routeCollection->getRoutes() :
143
-            [$routeCollection];
142
+            $routeCollection->getRoutes() : [$routeCollection];
144 143
 
145 144
         foreach ($routeArray as $route) {
146 145
             $collection->add($route);
Please login to merge, or discard this patch.
src/Prefix/Url.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
     public function addLocale($locale, $unlocalized, $options = []): string
41 41
     {
42 42
         $localized = $this->localeConfig->addLocaleToUrl($options) ?
43
-            parent::addLocale($locale, $unlocalized) :
44
-            $unlocalized;
43
+            parent::addLocale($locale, $unlocalized) : $unlocalized;
45 44
 
46 45
         return $this->trimUrl($localized);
47 46
     }
Please login to merge, or discard this patch.
src/Routing/LocaleRouter.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
         }
109 109
 
110 110
         return is_string($action) || is_a($action, Closure::class) ?
111
-            ['uses' => $action] :
112
-            $action;
111
+            ['uses' => $action] : $action;
113 112
     }
114 113
 
115 114
     protected function fillAction($locale, $route, $action, $options): array
Please login to merge, or discard this patch.