@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | public function __construct($app = null) |
| 24 | 24 | { |
| 25 | 25 | if (!$app) { |
| 26 | - $app = app(); //Fallback when $app is not given |
|
| 26 | + $app = app(); //Fallback when $app is not given |
|
| 27 | 27 | } |
| 28 | 28 | $this->app = $app; |
| 29 | 29 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $parameters = array_wrap($parameters); |
| 36 | 36 | |
| 37 | - if (! empty($parameters[0]) && ($parameters[0] instanceof \Illuminate\Database\Eloquent\Model)) { |
|
| 37 | + if (!empty($parameters[0]) && ($parameters[0] instanceof \Illuminate\Database\Eloquent\Model)) { |
|
| 38 | 38 | $entity = $parameters[0]; |
| 39 | 39 | if ($entity->urlAlias) { |
| 40 | 40 | unset($parameters[0]); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public function __construct($app) |
| 26 | 26 | { |
| 27 | 27 | if (!$app) { |
| 28 | - $app = app(); //Fallback when $app is not given |
|
| 28 | + $app = app(); //Fallback when $app is not given |
|
| 29 | 29 | } |
| 30 | 30 | $this->app = $app; |
| 31 | 31 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | foreach ($this->supportedLocales as $key => $item) { |
| 123 | 123 | if ($modelClass = $aliasModels->where('locale', $key)->first()) { |
| 124 | 124 | $link = $modelClass->localeAlias; |
| 125 | - } elseif($default) { |
|
| 125 | + } elseif ($default) { |
|
| 126 | 126 | $link = $default; |
| 127 | 127 | } else { |
| 128 | 128 | $link = $key; |