Passed
Push — master ( e8d451...9db9c5 )
by Ferry
05:38 queued 02:28
created
src/Modules/ModuleGenerator/Step1Handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if (file_exists(controller_path($row->controller))) {
40 40
             $response = FileManipulator::readCtrlContent(str_replace('.', '', $row->controller));
41
-        }else{
41
+        } else{
42 42
             $response = file_get_contents(__DIR__.'Step1Handler.php/'.str_replace('.', '', $row->controller).'.php');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/Modules/FileManagerModule/AdminFileManagerController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,9 @@
 block discarded – undo
70 70
     public function getDeleteFile($file)
71 71
     {
72 72
         $file = base64_decode($file);
73
-        if(Storage::delete($file))
74
-            backWithMsg('The file has been deleted!');
73
+        if(Storage::delete($file)) {
74
+                    backWithMsg('The file has been deleted!');
75
+        }
75 76
 
76 77
         backWithMsg('The file did not deleted!', 'warning');
77 78
     }
Please login to merge, or discard this patch.
src/CBCoreModule/Index.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             $data['result'] = $query->take($limit)->get();
72 72
             $totalData = count($data['result']);
73 73
             return $data;
74
-        }else{
74
+        } else{
75 75
             $data['result'] = $query->paginate($limit);
76 76
             $totalData = $data['result']->total();
77 77
         }
Please login to merge, or discard this patch.
src/controllers/CBController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,9 @@
 block discarded – undo
61 61
 
62 62
         $data = app(Index::class)->index($this);     
63 63
 
64
-        if($this->indexReturn) return $data;
64
+        if($this->indexReturn) {
65
+            return $data;
66
+        }
65 67
 
66 68
         return $this->cbView('crudbooster::index.index', $data);
67 69
     }
Please login to merge, or discard this patch.
src/Modules/NotificationsModule/AdminNotificationsController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 "callback"=>function($row) {
53 53
                     if($row->can_read) {
54 54
                         return CSSBootstrap::label('Already Read','success');
55
-                    }else{
55
+                    } else{
56 56
                         return CSSBootstrap::label('New','danger');
57 57
                     }
58 58
                 }                
Please login to merge, or discard this patch.