Passed
Push — master ( 5d294b...658575 )
by Jonathan
22:08 queued 13:43
created
app/Http/Controllers/Core/ListController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             ->get();
52 52
 
53 53
         // Order by
54
-        $filterOrderBy = (array) $selectedFilter->order_by;
54
+        $filterOrderBy = (array)$selectedFilter->order_by;
55 55
 
56 56
         return $this->autoView(compact('datatableColumns', 'filters', 'selectedFilter', 'filterOrderBy'));
57 57
     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             if ($relatedList && $relatedList->method) {
116 116
                 // Related list method
117 117
                 $method = $relatedList->method;
118
-                $recordIdsMethod = $method . 'RecordIds';
118
+                $recordIdsMethod = $method.'RecordIds';
119 119
 
120 120
                 // Get related records ids
121 121
                 $model = new $modelClass;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
                 // Add the record id itself to be filtered
125 125
                 if ($relatedList->module_id === $relatedList->related_module_id && !empty($recordId) && !$filteredRecordIds->contains($recordId)) {
126
-                    $filteredRecordIds[] = (int)$recordId;
126
+                    $filteredRecordIds[ ] = (int)$recordId;
127 127
                 }
128 128
 
129 129
                 // Make the quer
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             $records = $query->paginate($length);
135 135
         }
136 136
 
137
-        $records->getCollection()->transform(function ($record) use ($domain, $module) {
137
+        $records->getCollection()->transform(function($record) use ($domain, $module) {
138 138
             foreach ($module->fields as $field) {
139 139
                 // If a special template exists, use it. Else use the generic template
140 140
                 $uitype = uitype($field->uitype_id);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $results = collect();
175 175
         if (method_exists($modelClass, 'getSearchResult') && property_exists($modelClass, 'searchableColumns')) {
176 176
             $searchResults = new Search();
177
-            $searchResults->registerModel($modelClass, (array) (new $modelClass)->searchableColumns);
177
+            $searchResults->registerModel($modelClass, (array)(new $modelClass)->searchableColumns);
178 178
             $results = $searchResults->search($q)->take(config('uccello.max_results.autocomplete', 10));
179 179
         }
180 180
 
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
         $savePageLength = $request->input('save_page_length');
196 196
 
197 197
         // Optional data
198
-        $data = [];
198
+        $data = [ ];
199 199
         if ($savePageLength) {
200
-            $data["length"] = $request->input('page_length');
200
+            $data[ "length" ] = $request->input('page_length');
201 201
         }
202 202
 
203 203
         $filter = Filter::firstOrNew([
Please login to merge, or discard this patch.