Passed
Push — master ( 340202...35f943 )
by Jonathan
19:55
created
app/Http/Controllers/Core/DomainsTreeController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
         $rootDomains = app('uccello')->getRootDomains();
22 22
 
23
-        $domains = [];
23
+        $domains = [ ];
24 24
         foreach ($rootDomains as $_domain) {
25 25
             $formattedDomain = $this->getFormattedDomainToAdd($domain, $_domain);
26 26
             if ($formattedDomain) {
27
-                $domains[] = $formattedDomain;
27
+                $domains[ ] = $formattedDomain;
28 28
             }
29 29
         }
30 30
 
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 
46 46
         $parentDomain = Domain::find(request('id'));
47 47
 
48
-        $domains = [];
48
+        $domains = [ ];
49 49
         if ($parentDomain) {
50 50
             foreach ($parentDomain->children()->orderBy('name')->get() as $_domain) {
51 51
                 $formattedDomain = $this->getFormattedDomainToAdd($domain, $_domain);
52 52
                 if ($formattedDomain) {
53
-                    $domains[] = $formattedDomain;
53
+                    $domains[ ] = $formattedDomain;
54 54
                 }
55 55
             }
56 56
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Core/Controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param Module $module
76 76
      * @param boolean $forBlade
77 77
      */
78
-    protected function preProcess(?Domain &$domain, Module $module, Request $request, $forBlade=true)
78
+    protected function preProcess(?Domain &$domain, Module $module, Request $request, $forBlade = true)
79 79
     {
80 80
         // If we don't use multi domains, find the first one
81 81
         if (!uccello()->useMultiDomains()) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     {
154 154
         $keyName = $getAdminModules ? 'modules_all' : 'modules_not_admin';
155 155
 
156
-        return Cache::rememberForever($keyName, function () use($getAdminModules) {
156
+        return Cache::rememberForever($keyName, function() use($getAdminModules) {
157 157
             $modules = [ ];
158 158
 
159 159
             $allModules = Module::all();
Please login to merge, or discard this patch.