Passed
Push — main ( 2b476b...b3d2d3 )
by PRATIK
03:44
created
src/Services/Adminetic.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
         $children = [
164 164
             [
165 165
                 'type' => 'submenu',
166
-                'name' => 'All ' . $plural,
167
-                'is_active' => request()->routeIs($route . '.index') ? 'active' : '',
166
+                'name' => 'All '.$plural,
167
+                'is_active' => request()->routeIs($route.'.index') ? 'active' : '',
168 168
                 'link' => adminRedirectRoute($route),
169 169
                 'conditions' => [
170 170
                     [
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
             ],
176 176
             [
177 177
                 'type' => 'submenu',
178
-                'name' => 'Create ' . $route,
179
-                'is_active' => request()->routeIs($route . '.create') ? 'active' : '',
178
+                'name' => 'Create '.$route,
179
+                'is_active' => request()->routeIs($route.'.create') ? 'active' : '',
180 180
                 'link' => adminCreateRoute($route),
181 181
                 'conditions' => [
182 182
                     [
Please login to merge, or discard this patch.
src/Helpers/AdminHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,27 +69,27 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $profile = $p ?? Auth::user()->profile;
71 71
 
72
-        return isset($profile->profile_pic) ? (Illuminate\Support\Str::contains($profile->profile_pic, ['https://', 'http://']) ? $profile->profile_pic : asset('storage/' . $profile->profile_pic)) : asset('adminetic/static/profile.jpg');
72
+        return isset($profile->profile_pic) ? (Illuminate\Support\Str::contains($profile->profile_pic, ['https://', 'http://']) ? $profile->profile_pic : asset('storage/'.$profile->profile_pic)) : asset('adminetic/static/profile.jpg');
73 73
     }
74 74
 }
75 75
 
76 76
 if (!function_exists('getFavicon')) {
77 77
     function getFavicon()
78 78
     {
79
-        return setting('favicon') ? (asset('storage/' . setting('favicon'))) : 'adminetic/static/favicon.png';
79
+        return setting('favicon') ? (asset('storage/'.setting('favicon'))) : 'adminetic/static/favicon.png';
80 80
     }
81 81
 }
82 82
 if (!function_exists('getLogo')) {
83 83
     function getLogo()
84 84
     {
85
-        return setting('logo') ? (asset('storage/' . setting('logo'))) : 'adminetic/static/logo.png';
85
+        return setting('logo') ? (asset('storage/'.setting('logo'))) : 'adminetic/static/logo.png';
86 86
     }
87 87
 }
88 88
 
89 89
 if (!function_exists('getLogoBanner')) {
90 90
     function getLogoBanner()
91 91
     {
92
-        return setting('logo_banner') ? (asset('storage/' . setting('logo_banner'))) : asset('adminetic/static/logo_banner.jpg');
92
+        return setting('logo_banner') ? (asset('storage/'.setting('logo_banner'))) : asset('adminetic/static/logo_banner.jpg');
93 93
     }
94 94
 }
95 95
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 if (!function_exists('random_color')) {
111 111
     function random_color()
112 112
     {
113
-        return random_color_part() . random_color_part() . random_color_part();
113
+        return random_color_part().random_color_part().random_color_part();
114 114
     }
115 115
 }
116 116
 
Please login to merge, or discard this patch.