Passed
Push — master ( a14023...ec1592 )
by Ferry
05:48
created
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/helpers/CSSBootstrap.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 class CSSBootstrap
6 6
 {
7 7
 
8
-	public static function label($label,$class='warning') {
9
-		return "<span class='label label-".$class."'>".$label."</span>";
10
-	}
8
+    public static function label($label,$class='warning') {
9
+        return "<span class='label label-".$class."'>".$label."</span>";
10
+    }
11 11
 }
12 12
\ No newline at end of file
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.