Passed
Push — master ( cb386f...707992 )
by Iman
04:55
created
src/CBCoreModule/Index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         //LISTING INDEX HTML
77 77
         $addAction = $CbCtrl->data['addAction'];
78 78
 
79
-        if (! empty($CbCtrl->sub_module)) {
79
+        if (!empty($CbCtrl->sub_module)) {
80 80
             $addAction = $this->_handleSubModules($addAction);
81 81
         }
82 82
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         //$orig_mainpath = $CbCtrl->data['mainpath'];
85 85
         //$titleField = $CbCtrl->titleField;
86 86
         $number = (request('page', 1) - 1) * $limit + 1;
87
-        $columnsTable = array_filter($columns_table, function ($col) {
87
+        $columnsTable = array_filter($columns_table, function($col) {
88 88
             return $col['visible'] !== false;
89 89
         });
90 90
         $htmlContents = (new RowContent($CbCtrl))->calculate($data, $number, $columnsTable, $addAction); //end foreach data[result]
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $data['parent_field'] = DbInspector::getRelatedTableName($parent);
109 109
         }
110 110
 
111
-        if (! $data['parent_field']) {
111
+        if (!$data['parent_field']) {
112 112
             return $data;
113 113
         }
114 114
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     private function _filterForParent($result)
129 129
     {
130
-        if (! request('parent_id')) {
130
+        if (!request('parent_id')) {
131 131
             return null;
132 132
         }
133 133
 
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
     private function _applyWhereAndQfilters($result, $columnsTable, $table)
199 199
     {
200 200
         if (request('q')) {
201
-            $result->where(function ($query) use ($columnsTable) {
201
+            $result->where(function($query) use ($columnsTable) {
202 202
                 foreach ($columnsTable as $col) {
203
-                    if (! $col['field_with']) {
203
+                    if (!$col['field_with']) {
204 204
                         continue;
205 205
                     }
206 206
                     $query->orwhere($col['field_with'], "like", "%".request("q")."%");
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns='
245 245
             .$module['parent_columns'].'&parent_columns_alias='
246 246
             .$module['parent_columns_alias'].'&parent_id=['
247
-            .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
247
+            .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
248 248
             .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key='
249 249
             .$module['foreign_key'].'&label='.urlencode($module['label']);
250 250
     }
Please login to merge, or discard this patch.