Passed
Push — master ( 3eaec5...6ac912 )
by Iman
05:17 queued 01:25
created
src/CBCoreModule/Index.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         if ($filter_is_orderby === true) {
69 69
             (new Order($this->cb))->handle($result, $table);
70 70
         }
71
-        $limit = is_string($limit) ? (int)$limit : 15;
71
+        $limit = is_string($limit) ? (int) $limit : 15;
72 72
         $data['result'] = $result->paginate($limit);
73 73
 
74 74
         $data['columns'] = $columns_table;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         //LISTING INDEX HTML
81 81
         $addAction = $CbCtrl->data['addaction'];
82 82
 
83
-        if (! empty($CbCtrl->sub_module)) {
83
+        if (!empty($CbCtrl->sub_module)) {
84 84
             $addAction = $this->_handleSubModules($addAction);
85 85
         }
86 86
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $data['parent_field'] = DbInspector::getTableForeignKey(request('parent_table'));
109 109
         }
110 110
 
111
-        if (! $data['parent_field']) {
111
+        if (!$data['parent_field']) {
112 112
             return $data;
113 113
         }
114 114
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     private function _filterForParent($result)
128 128
     {
129
-        if (! request('parent_id')) {
129
+        if (!request('parent_id')) {
130 130
             return null;
131 131
         }
132 132
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     private function _filterOutSoftDeleted($tableColumns, $result)
142 142
     {
143
-        if (! in_array('deleted_at', $tableColumns)) {
143
+        if (!in_array('deleted_at', $tableColumns)) {
144 144
             return;
145 145
         }
146 146
         $result->where($this->table.'.deleted_at', '=', null);
@@ -199,9 +199,9 @@  discard block
 block discarded – undo
199 199
     private function _applyWhereAndQfilters($result, $columnsTable, $table)
200 200
     {
201 201
         if (request('q')) {
202
-            $result->where(function ($query) use ($columnsTable) {
202
+            $result->where(function($query) use ($columnsTable) {
203 203
                 foreach ($columnsTable as $col) {
204
-                    if (! $col['field_with']) {
204
+                    if (!$col['field_with']) {
205 205
                         continue;
206 206
                     }
207 207
                     $query->orwhere($col['field_with'], "like", "%".request("q")."%");
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns='
246 246
             .$module['parent_columns'].'&parent_columns_alias='
247 247
             .$module['parent_columns_alias'].'&parent_id=['
248
-            .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
248
+            .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id'])
249 249
             .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key='
250 250
             .$module['foreign_key'].'&label='.urlencode($module['label']);
251 251
     }
Please login to merge, or discard this patch.