@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | if (($title_or_properties['attributes']??null) === null) |
| 169 | 169 | { |
| 170 | - $title_or_properties['attributes'] = []; |
|
| 170 | + $title_or_properties['attributes'] = []; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | $properties = $title_or_properties; |
@@ -180,12 +180,12 @@ discard block |
||
| 180 | 180 | // if three args are passed in, third must be attributes |
| 181 | 181 | |
| 182 | 182 | if (func_num_args() === 3 && is_array($order)) { |
| 183 | - $attributes = $order; |
|
| 184 | - $properties = compact('title', 'attributes'); |
|
| 183 | + $attributes = $order; |
|
| 184 | + $properties = compact('title', 'attributes'); |
|
| 185 | 185 | } |
| 186 | 186 | else |
| 187 | 187 | { |
| 188 | - $properties = compact('title', 'order', 'attributes'); |
|
| 188 | + $properties = compact('title', 'order', 'attributes'); |
|
| 189 | 189 | } |
| 190 | 190 | } |
| 191 | 191 | |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | { |
| 166 | 166 | if (is_array($title_or_properties)) { |
| 167 | 167 | |
| 168 | - if (($title_or_properties['attributes']??null) === null) |
|
| 168 | + if (($title_or_properties['attributes'] ?? null) === null) |
|
| 169 | 169 | { |
| 170 | 170 | $title_or_properties['attributes'] = []; |
| 171 | 171 | } |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | |
| 358 | 358 | if (($title_or_properties['attributes']??null) === null) |
| 359 | 359 | { |
| 360 | - $title_or_properties['attributes'] = []; |
|
| 360 | + $title_or_properties['attributes'] = []; |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | $properties = $title_or_properties; |
@@ -370,12 +370,12 @@ discard block |
||
| 370 | 370 | // if three args are passed in, third must be attributes |
| 371 | 371 | |
| 372 | 372 | if (func_num_args() === 3 && is_array($order)) { |
| 373 | - $attributes = $order; |
|
| 374 | - $properties = compact('title', 'attributes'); |
|
| 373 | + $attributes = $order; |
|
| 374 | + $properties = compact('title', 'attributes'); |
|
| 375 | 375 | } |
| 376 | 376 | else |
| 377 | 377 | { |
| 378 | - $properties = compact('title', 'order', 'attributes'); |
|
| 378 | + $properties = compact('title', 'order', 'attributes'); |
|
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | $properties = compact('title', 'order', 'attributes'); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function findBy($key, $value) |
| 127 | 127 | { |
| 128 | - return collect($this->items)->filter(function ($item) use ($key, $value) { |
|
| 128 | + return collect($this->items)->filter(function($item) use ($key, $value) { |
|
| 129 | 129 | return $item->{$key} == $value; |
| 130 | 130 | })->first(); |
| 131 | 131 | } |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | protected function resolveItems(array &$items) |
| 312 | 312 | { |
| 313 | - $resolver = function ($property) { |
|
| 313 | + $resolver = function($property) { |
|
| 314 | 314 | return $this->resolve($property) ?: $property; |
| 315 | 315 | }; |
| 316 | 316 | |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | { |
| 356 | 356 | if (is_array($title_or_properties)) { |
| 357 | 357 | |
| 358 | - if (($title_or_properties['attributes']??null) === null) |
|
| 358 | + if (($title_or_properties['attributes'] ?? null) === null) |
|
| 359 | 359 | { |
| 360 | 360 | $title_or_properties['attributes'] = []; |
| 361 | 361 | } |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | public function getOrderedItems() |
| 639 | 639 | { |
| 640 | 640 | if (config('menus.ordering') || $this->ordering) { |
| 641 | - return $this->toCollection()->sortBy(function ($item) { |
|
| 641 | + return $this->toCollection()->sortBy(function($item) { |
|
| 642 | 642 | return $item->order; |
| 643 | 643 | })->all(); |
| 644 | 644 | } |