Completed
Push — master ( a503b2...32dcc3 )
by Jonathan
23:20 queued 10:26
created
app/Http/Controllers/Core/ListController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
         $savePageLength = $request->input('save_page_length');
82 82
 
83 83
         // Optional data
84
-        $data = [];
84
+        $data = [ ];
85 85
         if ($savePageLength) {
86
-            $data["length"] = $request->input('page_length');
86
+            $data[ "length" ] = $request->input('page_length');
87 87
         }
88 88
 
89 89
         $filter = Filter::firstOrNew([
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                 if ($relatedList && $relatedList->method) {
241 241
                     // Related list method
242 242
                     $method = $relatedList->method;
243
-                    $recordIdsMethod = $method . 'RecordIds';
243
+                    $recordIdsMethod = $method.'RecordIds';
244 244
 
245 245
                     // Get related records ids
246 246
                     $model = new $modelClass;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
                     // Add the record id itself to be filtered
250 250
                     if ($relatedList->related_module_id === $module->id && !empty($recordId) && !$filteredRecordIds->contains($recordId)) {
251
-                        $filteredRecordIds[] = (int)$recordId;
251
+                        $filteredRecordIds[ ] = (int)$recordId;
252 252
                     }
253 253
 
254 254
                     // Make the query
Please login to merge, or discard this patch.
app/Helpers/Uccello.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
      * @param string $type
295 295
      * @return array
296 296
      */
297
-    public function getDatatableColumns(Module $module, $filterId=null, $type='list'): array
297
+    public function getDatatableColumns(Module $module, $filterId = null, $type = 'list'): array
298 298
     {
299 299
         $columns = [ ];
300 300
 
Please login to merge, or discard this patch.
resources/views/modules/default/list/main.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
                                         {{ uctrans('field.'.$column['name'], $module) }}
92 92
                                         <?php
93 93
                                             $searchValue = null;
94
-                                            if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) {
95
-                                                $searchValue = $selectedFilter->conditions->search->{$column['name']};
94
+                                            if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) {
95
+                                                $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]};
96 96
                                             }
97 97
 
98 98
                                             // If a special template exists, use it. Else use the generic template
Please login to merge, or discard this patch.