Passed
Push — master ( 080a6c...c98abf )
by Jonathan
17:45
created
resources/views/modules/default/uitypes/detail/file.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     <?php
8 8
         $value = uitype($field->uitype_id)->getFormattedValueToDisplay($field, $record);
9 9
         $valueParts = explode(';', $value);
10
-        $fileName = $valueParts[0];
10
+        $fileName = $valueParts[ 0 ];
11 11
     ?>
12 12
     @if (count($valueParts) === 2)
13 13
         <div class="truncate">
Please login to merge, or discard this patch.
resources/views/modules/default/list/main.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,15 +95,15 @@
 block discarded – undo
95 95
                                         <div class="hide-on-small-only hide-on-med-only">
96 96
                                             <?php
97 97
                                                 $searchValue = null;
98
-                                                if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column['name']})) {
99
-                                                    $searchValue = $selectedFilter->conditions->search->{$column['name']};
98
+                                                if ($selectedFilter && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) {
99
+                                                    $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]};
100 100
                                                 }
101 101
 
102 102
                                                 // If a special template exists, use it. Else use the generic template
103 103
                                                 $uitypeViewName = sprintf('uitypes.search.%s', $column[ 'uitype' ]);
104 104
                                                 $uitypeFallbackView = 'uccello::modules.default.uitypes.search.text';
105 105
                                                 $uitypeViewToInclude = uccello()->view($column[ 'package' ], $module, $uitypeViewName, $uitypeFallbackView);
106
-                                                $field = $module->fields()->where('name', $column['name'])->first();
106
+                                                $field = $module->fields()->where('name', $column[ 'name' ])->first();
107 107
                                             ?>
108 108
                                             @include($uitypeViewToInclude, [ 'field' => $field ])
109 109
                                         </div>
Please login to merge, or discard this patch.
resources/views/modules/default/detail/relatedlists/table.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
                     <div class="search hide-on-small-only hide-on-med-only">
31 31
                         <?php
32 32
                             $searchValue = null;
33
-                            if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column['name']})) {
34
-                                $searchValue = $selectedFilter->conditions->search->{$column['name']};
33
+                            if (!empty($selectedFilter) && !empty($selectedFilter->conditions->search->{$column[ 'name' ]})) {
34
+                                $searchValue = $selectedFilter->conditions->search->{$column[ 'name' ]};
35 35
                             }
36 36
 
37 37
                             // If a special template exists, use it. Else use the generic template
38 38
                             $uitypeViewName = sprintf('uitypes.search.%s', $column[ 'uitype' ]);
39 39
                             $uitypeFallbackView = 'uccello::modules.default.uitypes.search.text';
40 40
                             $uitypeViewToInclude = uccello()->view($column[ 'package' ], $module, $uitypeViewName, $uitypeFallbackView);
41
-                            $field = $module->fields()->where('name', $column['name'])->first();
41
+                            $field = $module->fields()->where('name', $column[ 'name' ])->first();
42 42
                         ?>
43 43
                         @include($uitypeViewToInclude, [ 'field' => $field ])
44 44
                     </div>
Please login to merge, or discard this patch.
resources/views/modules/default/detail/tabs.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
             {{-- Badge --}}
32 32
             <?php
33
-                $countMethod = $relatedlist->method . 'Count';
33
+                $countMethod = $relatedlist->method.'Count';
34 34
 
35 35
                 $model = new $relatedModule->model_class;
36 36
                 $count = $model->$countMethod($relatedlist, $record->id);
Please login to merge, or discard this patch.
resources/views/modules/profile/edit/main.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                                     @foreach (uccello()->getCapabilities() as $capability)
42 42
                                         <?php
43 43
                                             $isApiCapability = strpos($capability->name, 'api-') !== false;
44
-                                            $packagePrefix = $capability->package ? $capability->package . '::' : '';
44
+                                            $packagePrefix = $capability->package ? $capability->package.'::' : '';
45 45
                                         ?>
46 46
                                         <th class="center-align @if ($isApiCapability)for-api hide @endif">{{ trans($packagePrefix . 'capability.' . $capability->name) }}</th>
47 47
                                     @endforeach
Please login to merge, or discard this patch.
resources/views/modules/profile/detail/main.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
                             @foreach (uccello()->getCapabilities() as $capability)
22 22
                                 <?php
23 23
                                     $isApiCapability = strpos($capability->name, 'api-') !== false;
24
-                                    $packagePrefix = $capability->package ? $capability->package . '::' : '';
24
+                                    $packagePrefix = $capability->package ? $capability->package.'::' : '';
25 25
                                 ?>
26 26
                                 <th class="center-align @if ($isApiCapability)for-api hide @endif">{{ trans($packagePrefix . 'capability.' . $capability->name) }}</th>
27 27
                             @endforeach
Please login to merge, or discard this patch.
app/Listeners/Core/AfterSaveEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         if ($event->mode === 'create') {
22 22
             Entity::create([
23
-                'id' => (string) Str::uuid(),
23
+                'id' => (string)Str::uuid(),
24 24
                 'module_id' => $event->module->id,
25 25
                 'record_id' => $event->record->getKey(),
26 26
             ]);
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         parent::boot();
21 21
 
22 22
         // Bind domain
23
-        Route::bind('domain', function ($value) {
23
+        Route::bind('domain', function($value) {
24 24
             if (preg_match('`^[0-9]+$`', $value)) { // By id
25 25
                 $domain = Domain::findOrFail($value);
26 26
             } else { // By slug
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         });
31 31
 
32 32
         // Bind module
33
-        Route::bind('module', function ($value) {
33
+        Route::bind('module', function($value) {
34 34
             if (preg_match('`^[0-9]+$`', $value)) { // By id
35 35
                 $module = Module::findOrFail($value);
36 36
             } else { // By name
Please login to merge, or discard this patch.
app/Helpers/Uccello.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -233,26 +233,26 @@  discard block
 block discarded – undo
233 233
 
234 234
         if (is_numeric($nameOrId)) {
235 235
             // Use cache
236
-            $modules = Cache::rememberForever('modules_by_id', function () {
236
+            $modules = Cache::rememberForever('modules_by_id', function() {
237 237
                 $modulesGroupedById = collect();
238 238
                 Module::all()->map(function($item) use($modulesGroupedById) {
239
-                    $modulesGroupedById[$item->id] = $item;
239
+                    $modulesGroupedById[ $item->id ] = $item;
240 240
                     return $modulesGroupedById;
241 241
                 });
242 242
                 return $modulesGroupedById;
243 243
             });
244
-            return $modules[(string) $nameOrId] ?? null;
244
+            return $modules[ (string)$nameOrId ] ?? null;
245 245
         } else {
246 246
             // Use cache
247
-            $modules = Cache::rememberForever('modules_by_name', function () {
247
+            $modules = Cache::rememberForever('modules_by_name', function() {
248 248
                 $modulesGroupedByName = collect();
249 249
                 Module::all()->map(function($item) use($modulesGroupedByName) {
250
-                    $modulesGroupedByName[$item->name] = $item;
250
+                    $modulesGroupedByName[ $item->name ] = $item;
251 251
                     return $modulesGroupedByName;
252 252
                 });
253 253
                 return $modulesGroupedByName;
254 254
             });
255
-            return $modules[(string) $nameOrId] ?? null;
255
+            return $modules[ (string)$nameOrId ] ?? null;
256 256
         }
257 257
     }
258 258
 
@@ -270,26 +270,26 @@  discard block
 block discarded – undo
270 270
 
271 271
         if (is_numeric($nameOrId)) {
272 272
             // Use cache
273
-            $uitypes = Cache::rememberForever('uitypes_by_id', function () {
273
+            $uitypes = Cache::rememberForever('uitypes_by_id', function() {
274 274
                 $uitypesGroupedById = collect();
275 275
                 Uitype::all()->map(function($item) use($uitypesGroupedById) {
276
-                    $uitypesGroupedById[$item->id] = $item;
276
+                    $uitypesGroupedById[ $item->id ] = $item;
277 277
                     return $uitypesGroupedById;
278 278
                 });
279 279
                 return $uitypesGroupedById;
280 280
             });
281
-            return $uitypes[(string) $nameOrId] ?? null;
281
+            return $uitypes[ (string)$nameOrId ] ?? null;
282 282
         } else {
283 283
             // Use cache
284
-            $uitypes = Cache::rememberForever('uitypes_by_name', function () {
284
+            $uitypes = Cache::rememberForever('uitypes_by_name', function() {
285 285
                 $uitypesGroupedByName = collect();
286 286
                 Uitype::all()->map(function($item) use($uitypesGroupedByName) {
287
-                    $uitypesGroupedByName[$item->name] = $item;
287
+                    $uitypesGroupedByName[ $item->name ] = $item;
288 288
                     return $uitypesGroupedByName;
289 289
                 });
290 290
                 return $uitypesGroupedByName;
291 291
             });
292
-            return $uitypes[(string) $nameOrId] ?? null;
292
+            return $uitypes[ (string)$nameOrId ] ?? null;
293 293
         }
294 294
     }
295 295
 
@@ -307,26 +307,26 @@  discard block
 block discarded – undo
307 307
 
308 308
         if (is_numeric($nameOrId)) {
309 309
             // Use cache
310
-            $displaytypes = Cache::rememberForever('displaytypes_by_id', function () {
310
+            $displaytypes = Cache::rememberForever('displaytypes_by_id', function() {
311 311
                 $displaytypesGroupedById = collect();
312 312
                 Displaytype::all()->map(function($item) use($displaytypesGroupedById) {
313
-                    $displaytypesGroupedById[$item->id] = $item;
313
+                    $displaytypesGroupedById[ $item->id ] = $item;
314 314
                     return $displaytypesGroupedById;
315 315
                 });
316 316
                 return $displaytypesGroupedById;
317 317
             });
318
-            return $displaytypes[(string) $nameOrId] ?? null;
318
+            return $displaytypes[ (string)$nameOrId ] ?? null;
319 319
         } else {
320 320
             // Use cache
321
-            $displaytypes = Cache::rememberForever('displaytypes_by_name', function () {
321
+            $displaytypes = Cache::rememberForever('displaytypes_by_name', function() {
322 322
                 $displaytypesGroupedByName = collect();
323 323
                 Displaytype::all()->map(function($item) use($displaytypesGroupedByName) {
324
-                    $displaytypesGroupedByName[$item->name] = $item;
324
+                    $displaytypesGroupedByName[ $item->name ] = $item;
325 325
                     return $displaytypesGroupedByName;
326 326
                 });
327 327
                 return $displaytypesGroupedByName;
328 328
             });
329
-            return $displaytypes[(string) $nameOrId] ?? null;
329
+            return $displaytypes[ (string)$nameOrId ] ?? null;
330 330
         }
331 331
     }
332 332
 
@@ -344,26 +344,26 @@  discard block
 block discarded – undo
344 344
 
345 345
         if (is_numeric($nameOrId)) {
346 346
             // Use cache
347
-            $capabilities = Cache::rememberForever('capabilities_by_id', function () {
347
+            $capabilities = Cache::rememberForever('capabilities_by_id', function() {
348 348
                 $capabilitiesGroupedById = collect();
349 349
                 Capability::all()->map(function($item) use($capabilitiesGroupedById) {
350
-                    $capabilitiesGroupedById[$item->id] = $item;
350
+                    $capabilitiesGroupedById[ $item->id ] = $item;
351 351
                     return $capabilitiesGroupedById;
352 352
                 });
353 353
                 return $capabilitiesGroupedById;
354 354
             });
355
-            return $capabilities[(string) $nameOrId] ?? null;
355
+            return $capabilities[ (string)$nameOrId ] ?? null;
356 356
         } else {
357 357
             // Use cache
358
-            $capabilities = Cache::rememberForever('capabilities_by_name', function () {
358
+            $capabilities = Cache::rememberForever('capabilities_by_name', function() {
359 359
                 $capabilitiesGroupedByName = collect();
360 360
                 Capability::all()->map(function($item) use($capabilitiesGroupedByName) {
361
-                    $capabilitiesGroupedByName[$item->name] = $item;
361
+                    $capabilitiesGroupedByName[ $item->name ] = $item;
362 362
                     return $capabilitiesGroupedByName;
363 363
                 });
364 364
                 return $capabilitiesGroupedByName;
365 365
             });
366
-            return $capabilities[(string) $nameOrId] ?? null;
366
+            return $capabilities[ (string)$nameOrId ] ?? null;
367 367
         }
368 368
     }
369 369
 
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
      * @param string $type
406 406
      * @return array
407 407
      */
408
-    public function getDatatableColumns(Module $module, $filterId=null, $type='list'): array
408
+    public function getDatatableColumns(Module $module, $filterId = null, $type = 'list'): array
409 409
     {
410 410
         $columns = [ ];
411 411
 
Please login to merge, or discard this patch.