Completed
Pull Request — master (#69)
by
unknown
07:45
created
src/MenuItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/MenuBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.