Passed
Push — master ( f51c1b...16736d )
by Arthur
05:36
created
src/Modules/User/Services/UserService.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,13 +22,15 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function find($id): ?User
24 24
     {
25
-        if ($id instanceof User)
26
-            return $id;
25
+        if ($id instanceof User) {
26
+                    return $id;
27
+        }
27 28
 
28 29
         $user = User::find($id);
29 30
 
30
-        if ($user === null)
31
-            throw new NotFoundHttpException();
31
+        if ($user === null) {
32
+                    throw new NotFoundHttpException();
33
+        }
32 34
 
33 35
         return $user;
34 36
     }
@@ -69,8 +71,9 @@  discard block
 block discarded – undo
69 71
 
70 72
     public function setRoles($id, array $roles): void
71 73
     {
72
-        if (!in_array(Role::USER, $roles))
73
-            $roles[] = Role::USER;
74
+        if (!in_array(Role::USER, $roles)) {
75
+                    $roles[] = Role::USER;
76
+        }
74 77
         $this->find($id)->syncRoles($roles);
75 78
     }
76 79
 }
Please login to merge, or discard this patch.
src/Modules/Machine/Services/MachineService.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,9 @@
 block discarded – undo
23 23
 
24 24
     public function find($id): ?Machine
25 25
     {
26
-        if ($id instanceof Machine)
27
-            return $id;
26
+        if ($id instanceof Machine) {
27
+                    return $id;
28
+        }
28 29
         return Machine::find($id);
29 30
     }
30 31
 
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Tests/HttpTest.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@
 block discarded – undo
31 31
 
32 32
     protected function getAuth0Service()
33 33
     {
34
-        if ($this->auth0 === null)
35
-            $this->auth0 = $this->app->make(Auth0UserRepository::class);
34
+        if ($this->auth0 === null) {
35
+                    $this->auth0 = $this->app->make(Auth0UserRepository::class);
36
+        }
36 37
         return $this->auth0;
37 38
     }
38 39
 
Please login to merge, or discard this patch.
src/Foundation/Console/SeedCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,9 @@
 block discarded – undo
59 59
 
60 60
             foreach ($seeders as $seeder) {
61 61
                 $seeder = $this->laravel->make($seeder);
62
-                if (!isset($seeder->seed) || $seeder->seed === false)
63
-                    $seeder->__invoke();
62
+                if (!isset($seeder->seed) || $seeder->seed === false) {
63
+                                    $seeder->__invoke();
64
+                }
64 65
             }
65 66
         });
66 67
 
Please login to merge, or discard this patch.
src/Foundation/Console/DatabaseResetCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@
 block discarded – undo
37 37
         Artisan::call('migrate');
38 38
         Artisan::call('db:seed');
39 39
 
40
-        if ($this->option('demo'))
41
-            Artisan::call('demo:seed');
40
+        if ($this->option('demo')) {
41
+                    Artisan::call('demo:seed');
42
+        }
42 43
 
43 44
         $this->info('Database has been reset!');
44 45
     }
Please login to merge, or discard this patch.