@@ -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 | } |
@@ -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 | } |