@@ -21,8 +21,7 @@ |
||
| 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) |
@@ -139,8 +139,7 @@ |
||
| 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); |
@@ -40,8 +40,7 @@ |
||
| 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 | } |
@@ -108,8 +108,7 @@ |
||
| 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 |