@@ -135,7 +135,7 @@ |
||
135 | 135 | |
136 | 136 | abstract public function getBadge(): string; |
137 | 137 | |
138 | - abstract public function getIcon(null|string $default): ?string; |
|
138 | + abstract public function getIcon(null | string $default): ?string; |
|
139 | 139 | |
140 | 140 | abstract public function getProperties(): array; |
141 | 141 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $this->registerSpatieHtmlPackage(); |
42 | 42 | |
43 | - $this->app->singleton('menus', function ($app) { |
|
43 | + $this->app->singleton('menus', function($app) { |
|
44 | 44 | return new Menu($app['view'], $app['config']); |
45 | 45 | }); |
46 | 46 | } |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | */ |
76 | 76 | protected function registerNamespaces() |
77 | 77 | { |
78 | - $configPath = __DIR__ . '/../config/config.php'; |
|
79 | - $viewsPath = __DIR__ . '/../views'; |
|
78 | + $configPath = __DIR__.'/../config/config.php'; |
|
79 | + $viewsPath = __DIR__.'/../views'; |
|
80 | 80 | $this->mergeConfigFrom($configPath, 'menus'); |
81 | 81 | $this->loadViewsFrom($viewsPath, 'menus'); |
82 | 82 |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | if ($this->hasBadge()) { |
278 | 278 | extract($this->badge); |
279 | 279 | |
280 | - return '<span class="' . $type . '">' . $text . '</span>'; |
|
280 | + return '<span class="'.$type.'">'.$text.'</span>'; |
|
281 | 281 | } |
282 | 282 | } |
283 | 283 | |
@@ -291,13 +291,13 @@ discard block |
||
291 | 291 | public function getIcon(string $default = null): ?string |
292 | 292 | { |
293 | 293 | if ($this->icon !== null && $this->icon !== '') { |
294 | - return '<i class="' . $this->icon . '"></i>'; |
|
294 | + return '<i class="'.$this->icon.'"></i>'; |
|
295 | 295 | } |
296 | 296 | if ($default === null) { |
297 | 297 | return $default; |
298 | 298 | } |
299 | 299 | |
300 | - return '<i class="' . $default . '"></i>'; |
|
300 | + return '<i class="'.$default.'"></i>'; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
@@ -322,17 +322,17 @@ discard block |
||
322 | 322 | Arr::forget($attributes, ['active', 'icon']); |
323 | 323 | |
324 | 324 | $attributeString = collect($attributes) |
325 | - ->map(function ($value, $key) { |
|
325 | + ->map(function($value, $key) { |
|
326 | 326 | if (is_bool($value)) { |
327 | 327 | return $value ? $key : ''; |
328 | 328 | } |
329 | 329 | |
330 | - return $key . '="' . e($value) . '"'; |
|
330 | + return $key.'="'.e($value).'"'; |
|
331 | 331 | }) |
332 | 332 | ->filter() |
333 | 333 | ->implode(' '); |
334 | 334 | |
335 | - return $attributeString ? ' ' . $attributeString : ''; |
|
335 | + return $attributeString ? ' '.$attributeString : ''; |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | /** |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | */ |
520 | 520 | protected function getActiveStateFromRoute(): bool |
521 | 521 | { |
522 | - return Request::is(str_replace(url('/') . '/', '', $this->getUrl())); |
|
522 | + return Request::is(str_replace(url('/').'/', '', $this->getUrl())); |
|
523 | 523 | } |
524 | 524 | |
525 | 525 | /** |