@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $data['parent_field'] = CB::getTableForeignKey(request('parent_table'), $this->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 |
||
| 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 |
||
| 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 |
||
| 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")."%"); |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | return CRUDBooster::adminPath($module['path']).'?parent_table='.$table_parent.'&parent_columns=' |
| 274 | 274 | .$module['parent_columns'].'&parent_columns_alias=' |
| 275 | 275 | .$module['parent_columns_alias'].'&parent_id=[' |
| 276 | - .(! isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
| 276 | + .(!isset($module['custom_parent_id']) ? "id" : $module['custom_parent_id']) |
|
| 277 | 277 | .']&return_url='.urlencode(Request::fullUrl()).'&foreign_key=' |
| 278 | 278 | .$module['foreign_key'].'&label='.urlencode($module['label']); |
| 279 | 279 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public static function first($table, $id) |
| 111 | 111 | { |
| 112 | 112 | $table = self::parseSqlTable($table)['table']; |
| 113 | - if (! is_array($id)) { |
|
| 113 | + if (!is_array($id)) { |
|
| 114 | 114 | $pk = DbInspector::findPK($table); |
| 115 | 115 | |
| 116 | 116 | return DB::table($table)->where($pk, $id)->first(); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $controllerName = basename($controllerName); |
| 144 | 144 | $route_url = route($controllerName.'GetIndex'); |
| 145 | 145 | |
| 146 | - if (! $path) { |
|
| 146 | + if (!$path) { |
|
| 147 | 147 | return trim($route_url, '/'); |
| 148 | 148 | } |
| 149 | 149 | |