Passed
Push — master ( 17c8d8...65308f )
by Jonathan
09:04
created
app/Http/Controllers/Core/SearchController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             $modelClass = $module->model_class;
53 53
 
54 54
             if (method_exists($modelClass, 'getSearchResult') && property_exists($modelClass, 'searchableColumns')) {
55
-                $searchResults->registerModel($modelClass, (array) (new $modelClass)->searchableColumns);
55
+                $searchResults->registerModel($modelClass, (array)(new $modelClass)->searchableColumns);
56 56
             }
57 57
         }
58 58
 
Please login to merge, or discard this patch.
resources/views/modules/default/uitypes/list/file.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 $value = uitype($field->uitype_id)->getFormattedValueToDisplay($field, $record);
3 3
 $valueParts = explode(';', $value);
4
-$fileName = $valueParts[0];
4
+$fileName = $valueParts[ 0 ];
5 5
 ?>
6 6
 @if (count($valueParts) === 2)
7 7
 <a href="{{ ucroute('uccello.download', $domain, $module, [ 'id' => $record->getKey(), 'field' => $field->column ]) }}"
Please login to merge, or discard this patch.
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/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/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.
tests/Feature/Settings/ModuleManagerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     protected function getSettingsModule()
29 29
     {
30
-       return Module::where('name', 'settings')->first();
30
+        return Module::where('name', 'settings')->first();
31 31
     }
32 32
 
33 33
     public function testModuleActivationCanBeChanged()
Please login to merge, or discard this patch.