Passed
Push — master ( 91bafd...525ba8 )
by Jonathan
11:06
created
app/Http/Controllers/Core/ListController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -270,13 +270,13 @@
 block discarded – undo
270 270
         $domain = $this->domain;
271 271
         $module = $this->module;
272 272
 
273
-         // Get model model class
274
-         $modelClass = $module->model_class;
273
+            // Get model model class
274
+            $modelClass = $module->model_class;
275 275
 
276
-         // Check if the class exists
277
-         if (!class_exists($modelClass)) {
278
-             return false;
279
-         }
276
+            // Check if the class exists
277
+            if (!class_exists($modelClass)) {
278
+                return false;
279
+            }
280 280
 
281 281
         // Filter on domain if column exists
282 282
         if (Schema::hasColumn((new $modelClass)->getTable(), 'domain_id')) {
Please login to merge, or discard this patch.
app/Http/Controllers/Core/Controller.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,8 +234,7 @@
 block discarded – undo
234 234
                             //     $currentClass = 'class="green-text"';
235 235
                             // }
236 236
                             return '<li><a href="'.ucroute('uccello.home', $node).'" '.$currentClass.'>'.$node->name.'</a>{sub-tree}</li>';
237
-                        }
238
-                        elseif (auth()->user()->hasRoleOnDescendantDomain($node)) {
237
+                        } elseif (auth()->user()->hasRoleOnDescendantDomain($node)) {
239 238
                             return '<li>'.$node->name.'{sub-tree}</li>';
240 239
                         } else {
241 240
                             return '';
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.
app/helpers.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,8 +183,7 @@
 block discarded – undo
183 183
         if (is_numeric($idOrUid))
184 184
         {
185 185
             $className::find($idOrUid);
186
-        }
187
-        else
186
+        } else
188 187
         {
189 188
             return uccello()->getRecordByUid($idOrUid);
190 189
         }
Please login to merge, or discard this patch.
app/Helpers/Uccello.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -494,8 +494,7 @@
 block discarded – undo
494 494
         
495 495
         if($entity) {
496 496
             return $entity->record;
497
-        }
498
-        else {
497
+        } else {
499 498
             return null;
500 499
         }
501 500
     }
Please login to merge, or discard this patch.