Passed
Push — main ( d76485...5e9128 )
by PRATIK
07:36 queued 04:21
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/Console/Commands/MakeAPIForAllModelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             $path = $this->option('path') ?? 'Models';
46 46
             $models = getAllModelNames(app_path($path));
47 47
             foreach ($models as $name) {
48
-                if (Schema::hasTable(Str::plural($name)) && ! in_array($name, $excluded_models ?? [])) {
48
+                if (Schema::hasTable(Str::plural($name)) && !in_array($name, $excluded_models ?? [])) {
49 49
                     $path = $this->getModelPath($name);
50 50
                     $version = $this->option('v');
51 51
                     if ($this->option('rest')) {
Please login to merge, or discard this patch.