Passed
Push — main ( 7ec2fe...bfff7a )
by PRATIK
12:40 queued 12s
created
src/Console/Commands/MakeRepositoryPatternCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
 
45 45
         RepositoryPatternService::ImplementNow($name, $makeRequest);
46 46
 
47
-        $this->info('Repository pattern implemented for model ' . $name);
47
+        $this->info('Repository pattern implemented for model '.$name);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/Console/Commands/MakePermissionCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 $this->info('No permission is needed for Super Admin');
63 63
             } else {
64 64
                 MakePermission::makePermission($name, $role_id, $for_all, $only_flags);
65
-                $this->info('Permission' . $only_flags ? 'view and' : 'flags made for model ' . $name);
65
+                $this->info('Permission'.$only_flags ? 'view and' : 'flags made for model '.$name);
66 66
             }
67 67
         }
68 68
     }
Please login to merge, or discard this patch.
src/Console/Commands/MakeCRUDGeneratorCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,20 +44,20 @@
 block discarded – undo
44 44
         CRUDGeneratorService::makeCRUD($name, $this);
45 45
 
46 46
         if ($this->option('acl')) {
47
-            Artisan::call('make:permission ' . $name . ' --all');
47
+            Artisan::call('make:permission '.$name.' --all');
48 48
             $this->info('ACL created ... ✅');
49 49
         }
50 50
 
51 51
         if ($this->option('api')) {
52
-            Artisan::call('make:api ' . $name);
52
+            Artisan::call('make:api '.$name);
53 53
             $this->info('API resource files created ... ✅');
54 54
         }
55 55
 
56 56
         if ($this->option('rest')) {
57
-            Artisan::call('make:api ' . $name . ' --rest');
57
+            Artisan::call('make:api '.$name.' --rest');
58 58
             $this->info('RestAPI files created ... ✅');
59 59
         }
60 60
 
61
-        $this->info('CRUD made for model ' . $name . ' ... ✅');
61
+        $this->info('CRUD made for model '.$name.' ... ✅');
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Console/Commands/MakeAPIResourceCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
         $version = $this->option('v');
45 45
         if ($this->option('rest')) {
46 46
             MakeAPIResource::makeRestAPI($name, $path, $version);
47
-            $this->info('Restful API Resource created for model ' . $name);
47
+            $this->info('Restful API Resource created for model '.$name);
48 48
         } elseif ($this->option('client')) {
49 49
             MakeAPIResource::makeClientAPI($name, $path, $version);
50
-            $this->info('Client API created for model ' . $name);
50
+            $this->info('Client API created for model '.$name);
51 51
         } else {
52 52
             MakeAPIResource::makeAPI($name, $path, $version);
53
-            $this->info('API Resource created for model ' . $name);
53
+            $this->info('API Resource created for model '.$name);
54 54
         }
55 55
     }
56 56
 
@@ -65,6 +65,6 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $explode_path = preg_split('#/#', $given_name);
67 67
 
68
-        return count($explode_path) > 1 ? str_replace('/', '\\', $given_name) : ('App\\Models\\Admin\\' . $given_name);
68
+        return count($explode_path) > 1 ? str_replace('/', '\\', $given_name) : ('App\\Models\\Admin\\'.$given_name);
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
src/Console/Commands/MakeAPIForAllModelCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
                     $version = $this->option('v');
52 52
                     if ($this->option('rest')) {
53 53
                         MakeAPIResource::makeRestAPI($name, $path, $version);
54
-                        $this->info('Restful API Resource created for model ' . $name . ' ... ✅');
54
+                        $this->info('Restful API Resource created for model '.$name.' ... ✅');
55 55
                     } elseif ($this->option('client')) {
56 56
                         MakeAPIResource::makeClientAPI($name, $path, $version);
57
-                        $this->info('Client API created for model ' . $name . ' ... ✅');
57
+                        $this->info('Client API created for model '.$name.' ... ✅');
58 58
                     } else {
59 59
                         MakeAPIResource::makeAPI($name, $path, $version);
60
-                        $this->info('API Resource created for model ' . $name . ' ... ✅');
60
+                        $this->info('API Resource created for model '.$name.' ... ✅');
61 61
                     }
62 62
                 }
63 63
             }
@@ -75,6 +75,6 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $explode_path = preg_split('#/#', $given_name);
77 77
 
78
-        return count($explode_path) > 1 ? str_replace('/', '\\', $given_name) : ('App\\Models\\Admin\\' . $given_name);
78
+        return count($explode_path) > 1 ? str_replace('/', '\\', $given_name) : ('App\\Models\\Admin\\'.$given_name);
79 79
     }
80 80
 }
Please login to merge, or discard this patch.
src/View/Components/IndexPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
     protected function makeDynamicClass($name)
43 43
     {
44 44
         if ($name == 'User') {
45
-            $className = 'App\\Models\\' . Str::ucfirst($name);
45
+            $className = 'App\\Models\\'.Str::ucfirst($name);
46 46
         } elseif ($name == 'Permission' || $name == 'Preference' || $name == 'Profile' || $name == 'Role' || $name == 'Setting') {
47
-            $className = 'Pratiksh\\Adminetic\\Models\\Admin\\' . Str::ucfirst($name);
47
+            $className = 'Pratiksh\\Adminetic\\Models\\Admin\\'.Str::ucfirst($name);
48 48
         } else {
49
-            $className = 'App\\Models\\Admin\\' . Str::ucfirst($name);
49
+            $className = 'App\\Models\\Admin\\'.Str::ucfirst($name);
50 50
         }
51 51
 
52 52
         return new  $className;
Please login to merge, or discard this patch.
tests/FontAwesomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function index()
10 10
     {
11
-        $file_path = public_path() . '/adminetic/assets/js/icon-picker/iconpicker-1.5.0.json';
11
+        $file_path = public_path().'/adminetic/assets/js/icon-picker/iconpicker-1.5.0.json';
12 12
         $fonts = file_exists($file_path) ? json_decode(file_get_contents($file_path), true) : null;
13 13
 
14 14
         return view('adminetic::admin.fontawesome.index', compact('fonts'));
Please login to merge, or discard this patch.