Passed
Push — master ( 2aba55...6317c7 )
by Frédéric
01:02 queued 12s
created
src/Routing/LocaleRouter.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@  discard block
 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
@@ -135,7 +134,7 @@  discard block
 block discarded – undo
135 134
         $only = ['index', 'show', 'store', 'update', 'destroy'];
136 135
 
137 136
         if (isset($options['except'])) {
138
-            $only = array_diff($only, (array)$options['except']);
137
+            $only = array_diff($only, (array) $options['except']);
139 138
         }
140 139
 
141 140
         $this->resource(
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.