Passed
Push — main ( a14d9d...49a127 )
by PRATIK
11:52
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   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,34 +69,34 @@  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'))) : asset('adminetic/static/favicon.png');
79
+        return setting('favicon') ? (asset('storage/'.setting('favicon'))) : asset('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'))) : asset('adminetic/static/logo.png');
85
+        return setting('logo') ? (asset('storage/'.setting('logo'))) : asset('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
 
96 96
 if (!function_exists('login_register_bg_image')) {
97 97
     function login_register_bg_image()
98 98
     {
99
-        return setting('login_register_bg_image') ? (asset('storage/' . setting('login_register_bg_image'))) : asset('adminetic/static/login_register_bg_img.jpg');
99
+        return setting('login_register_bg_image') ? (asset('storage/'.setting('login_register_bg_image'))) : asset('adminetic/static/login_register_bg_img.jpg');
100 100
     }
101 101
 }
102 102
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 if (!function_exists('random_color')) {
118 118
     function random_color()
119 119
     {
120
-        return random_color_part() . random_color_part() . random_color_part();
120
+        return random_color_part().random_color_part().random_color_part();
121 121
     }
122 122
 }
123 123
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 if (!function_exists('deleteImage')) {
149 149
     function deleteImage($image)
150 150
     {
151
-        $image ? (\Illuminate\Support\Facades\File::exists(public_path('storage/' . $image)) ? \Illuminate\Support\Facades\File::delete(public_path('storage/' . $image)) : '') : '';
151
+        $image ? (\Illuminate\Support\Facades\File::exists(public_path('storage/'.$image)) ? \Illuminate\Support\Facades\File::delete(public_path('storage/'.$image)) : '') : '';
152 152
     }
153 153
 }
154 154
 
Please login to merge, or discard this patch.