Passed
Push — master ( 299e29...923e03 )
by Jeff
02:45 queued 10s
created
app/Providers/GlobalTemplateServiceProvider.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
             'layouts.admin.app',
30 30
             'layouts.admin.sidebar',
31 31
             'admin.shared.products'
32
-        ], function ($view) {
32
+        ], function($view) {
33 33
             $view->with('admin', Auth::guard('employee')->user());
34 34
         });
35 35
 
36
-        view()->composer(['layouts.front.app', 'front.categories.sidebar-category'], function ($view) {
36
+        view()->composer(['layouts.front.app', 'front.categories.sidebar-category'], function($view) {
37 37
             $view->with('categories', $this->getCategories());
38 38
             $view->with('cartCount', $this->getCartCount());
39 39
         });
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
          */
44 44
         view()->composer([
45 45
             "layouts.admin.app"
46
-        ], function ($view) {
46
+        ], function($view) {
47 47
             $breadcumb = [
48 48
                 ["name" => "Dashboard", "url" => route("admin.dashboard"), "icon" => "fa fa-dashboard"],
49 49
             ];
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         });
65 65
 
66 66
 
67
-        view()->composer(['layouts.front.category-nav'], function ($view) {
67
+        view()->composer(['layouts.front.category-nav'], function($view) {
68 68
             $view->with('categories', $this->getCategories());
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,10 +50,11 @@
 block discarded – undo
50 50
             $paths = request()->segments();
51 51
             if (count($paths) > 1) {
52 52
                 foreach ($paths as $key => $pah) {
53
-                    if ($key == 1)
54
-                        $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")];
55
-                    elseif ($key == 2)
56
-                        $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[1] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")];
53
+                    if ($key == 1) {
54
+                                            $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")];
55
+                    } elseif ($key == 2) {
56
+                                            $breadcumb[] = ["name" => ucfirst($pah), "url" => request()->getBaseUrl() . "/" . $paths[0] . "/" . $paths[1] . "/" . $paths[$key], 'icon' => config("module.admin." . $pah . ".icon")];
57
+                    }
57 58
                 }
58 59
             }
59 60
             $view->with(
Please login to merge, or discard this patch.
app/Helpers/helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if ($validated["valid"] === true) {
40 40
             view()->composer([
41 41
                 "layouts.admin.app"
42
-            ], function ($view) use ($data) {
42
+            ], function($view) use ($data) {
43 43
                 $view->with(
44 44
                     [
45 45
                         "breadcumbs" => $data
Please login to merge, or discard this patch.