Passed
Push — master ( 064b0a...d587da )
by Kyle
12:38
created
src/Contracts/MenuItemContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/MenusServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/MenuItem.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.