@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | public function __toString() |
66 | 66 | { |
67 | - return (string) $this->get('key'); |
|
67 | + return (string)$this->get('key'); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function fromKeys($keys) |
21 | 21 | { |
22 | - $keys = (array) $keys; |
|
22 | + $keys = (array)$keys; |
|
23 | 23 | $collection = collect(); |
24 | 24 | |
25 | 25 | /** @var Managers */ |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public static function fromTags($tags) |
35 | 35 | { |
36 | - $tags = (array) $tags; |
|
36 | + $tags = (array)$tags; |
|
37 | 37 | $collection = collect(); |
38 | 38 | |
39 | 39 | /** @var Managers */ |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | |
53 | 53 | private static function fromManagers(Collection $collection) |
54 | 54 | { |
55 | - return new static(...$collection->reject(function ($manager) { |
|
55 | + return new static(...$collection->reject(function($manager) { |
|
56 | 56 | return !$manager->can('index'); |
57 | - })->map(function ($manager) { |
|
57 | + })->map(function($manager) { |
|
58 | 58 | return new NavItem($manager->details()->plural, $manager->route('index'), [ |
59 | 59 | 'key' => $manager->details()->key, |
60 | 60 | 'tags' => app(Register::class)->filterByKey($manager->details()->key)->first()->tags() |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | public function rejectKeys($keys) |
66 | 66 | { |
67 | - $keys = (array) $keys; |
|
67 | + $keys = (array)$keys; |
|
68 | 68 | |
69 | 69 | foreach ($this->items as $k => $item) { |
70 | 70 | if (in_array($item->details('key', ''), $keys)) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | public function rejectTags($tags) |
79 | 79 | { |
80 | - $tags = (array) $tags; |
|
80 | + $tags = (array)$tags; |
|
81 | 81 | |
82 | 82 | foreach ($this->items as $k => $item) { |
83 | 83 | if (count(array_intersect($item->details('tags', []), $tags)) > 0) { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $output = ''; |
120 | 120 | |
121 | 121 | foreach ($this->items as $item) { |
122 | - $output .= '<a class="' . (isActiveUrl($item->url()) ? 'active' : '') . '" href="'.$item->url().'">'; |
|
122 | + $output .= '<a class="'.(isActiveUrl($item->url()) ? 'active' : '').'" href="'.$item->url().'">'; |
|
123 | 123 | $output .= $title ?? ucfirst($item->title()); |
124 | 124 | $output .= '</a>'; |
125 | 125 | } |
@@ -146,14 +146,14 @@ discard block |
||
146 | 146 | |
147 | 147 | $items = ''; |
148 | 148 | foreach ($this->items as $item) { |
149 | - $items .= '<a class="' . (isActiveUrl($item->url()) ? 'active' : '') . '" href="'.$item->url().'">'; |
|
149 | + $items .= '<a class="'.(isActiveUrl($item->url()) ? 'active' : '').'" href="'.$item->url().'">'; |
|
150 | 150 | $items .= $item->title(); |
151 | 151 | $items .= '</a>'; |
152 | 152 | } |
153 | 153 | |
154 | 154 | // Surround within vue dropdown |
155 | 155 | $output = '<dropdown>'; |
156 | - $output .= '<span class="center-y nav-item" slot="trigger" slot-scope="{ toggle, isActive }" @click="toggle">'. ($title ?? 'Collecties') .'</span>'; |
|
156 | + $output .= '<span class="center-y nav-item" slot="trigger" slot-scope="{ toggle, isActive }" @click="toggle">'.($title ?? 'Collecties').'</span>'; |
|
157 | 157 | $output .= '<div v-cloak class="dropdown-box inset-s">'; |
158 | 158 | $output .= $items; |
159 | 159 | $output .= '</div>'; |