Passed
Push — master ( be985d...bcc337 )
by Iman
04:39
created
src/CBCoreModule/Index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         //$orig_mainpath = $CbCtrl->data['mainpath'];
78 78
         //$titleField = $CbCtrl->titleField;
79 79
         $number = (request('page', 1) - 1) * $limit + 1;
80
-        $columnsTable = array_filter($columns, function ($col) {
80
+        $columnsTable = array_filter($columns, function($col) {
81 81
             return $col['visible'] !== false;
82 82
         });
83 83
         $htmlContents = (new RowContent($CbCtrl))->calculate($data, $number, $columnsTable); //end foreach data[result]
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $data['parent_field'] = DbInspector::getRelatedTableName($parent);
102 102
         }
103 103
 
104
-        if (! $data['parent_field']) {
104
+        if (!$data['parent_field']) {
105 105
             return $data;
106 106
         }
107 107
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     private function _filterForParent($result)
122 122
     {
123
-        if (! request('parent_id')) {
123
+        if (!request('parent_id')) {
124 124
             return null;
125 125
         }
126 126
 
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
     private function _applyWhereAndQfilters($result, $columnsTable, $table)
192 192
     {
193 193
         if (request('q')) {
194
-            $result->where(function ($query) use ($columnsTable) {
194
+            $result->where(function($query) use ($columnsTable) {
195 195
                 foreach ($columnsTable as $col) {
196
-                    if (! $col['field_with']) {
196
+                    if (!$col['field_with']) {
197 197
                         continue;
198 198
                     }
199 199
                     $query->orwhere($col['field_with'], "like", "%".request("q")."%");
Please login to merge, or discard this patch.
src/CBCoreModule/Index/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function handle($query, $table, $orderBy, $primaryKey)
14 14
     {
15
-        if (! $orderBy) {
15
+        if (!$orderBy) {
16 16
             $query->orderby($table.'.'.$primaryKey, 'desc');
17 17
             return;
18 18
         }
Please login to merge, or discard this patch.