Passed
Pull Request — main (#31)
by PRATIK
06:09 queued 02:25
created
src/Providers/AdmineticServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     protected function registerRoutes()
170 170
     {
171
-        Route::group($this->routeConfiguration(), function () {
171
+        Route::group($this->routeConfiguration(), function() {
172 172
             $this->loadRoutesFrom(__DIR__.'/../../routes/web.php');
173 173
         });
174 174
     }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     protected function directives()
214 214
     {
215
-        Blade::if('hasRole', function ($roles) {
215
+        Blade::if ('hasRole', function($roles) {
216 216
             $hasAccess = false;
217 217
             $roles_array = explode('|', $roles);
218 218
             foreach ($roles_array as $role) {
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
 
222 222
             return $hasAccess;
223 223
         });
224
-        Blade::if('preference', function ($preference_name, $default_value) {
224
+        Blade::if ('preference', function($preference_name, $default_value) {
225 225
             return preference($preference_name, $default_value);
226 226
         });
227
-        Blade::directive('setting', function ($setting_name) {
227
+        Blade::directive('setting', function($setting_name) {
228 228
             return "<?php echo setting($setting_name) ?>";
229 229
         });
230 230
     }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      */
302 302
     protected function getFacades()
303 303
     {
304
-        $this->app->bind('adminetic', function ($app) {
304
+        $this->app->bind('adminetic', function($app) {
305 305
             return new Adminetic();
306 306
         });
307 307
     }
Please login to merge, or discard this patch.
src/Services/MakeAPIResource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected static function makeRestAPIController($name, $path)
35 35
     {
36
-        if (! file_exists($dir_path = app_path('Http/Controllers/Admin/API/Restful'))) {
36
+        if (!file_exists($dir_path = app_path('Http/Controllers/Admin/API/Restful'))) {
37 37
             mkdir($dir_path, 0777, true);
38 38
         }
39 39
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         // Making API Resource
64 64
         self::makeAPIResource($name, $path);
65 65
         // Making Controller
66
-        if (! file_exists($dir_path = app_path('Http/Controllers/Admin/API/Client'))) {
66
+        if (!file_exists($dir_path = app_path('Http/Controllers/Admin/API/Client'))) {
67 67
             mkdir($dir_path, 0777, true);
68 68
         }
69 69
         $controllerTemplate = str_replace(
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     protected static function makeAPIResource($name, $path)
88 88
     {
89
-        if (! file_exists($dir_path = app_path("/Http/Resources/{$name}"))) {
89
+        if (!file_exists($dir_path = app_path("/Http/Resources/{$name}"))) {
90 90
             mkdir($dir_path, 0777, true);
91 91
         }
92 92
         // Making Collection
Please login to merge, or discard this patch.