@@ -108,8 +108,7 @@ discard block |
||
| 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 |
||
| 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( |
@@ -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 | } |