Passed
Push — master ( c13b73...f2713c )
by Arthur
05:06
created
src/Modules/Demo/Database/Seeders/DemoSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             'user_id' => $user->id,
56 56
         ]);
57 57
 
58
-        foreach($machines as $machine){
58
+        foreach ($machines as $machine) {
59 59
             $this->seedAccounts($machine);
60 60
         }
61 61
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     protected function seedAccounts($machine)
66 66
     {
67
-        $accounts = Account::fromFactory(rand(2,5))->state('OSRS')->create([
67
+        $accounts = Account::fromFactory(rand(2, 5))->state('OSRS')->create([
68 68
             'user_id' => $machine->user_id,
69 69
         ]);
70 70
 
Please login to merge, or discard this patch.
src/Modules/Demo/Jobs/AlterDemoDataJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 'cpu_usage'    => rand(0, 100),
54 54
                 'memory_usage' => rand(1, $machine->memory_available),
55 55
             ]);
56
-            $this->machineService->update($machine, ['online' => (bool) rand(0, 1)]);
56
+            $this->machineService->update($machine, [ 'online' => (bool) rand(0, 1) ]);
57 57
         }
58 58
     }
59 59
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 'cpu_usage'    => rand(0, 100),
65 65
                 'memory_usage' => rand(1, $account->memory_available),
66 66
             ]);
67
-            $this->accountService->update($account, ['online' => (bool) rand(0, 1)]);
67
+            $this->accountService->update($account, [ 'online' => (bool) rand(0, 1) ]);
68 68
         }
69 69
     }
70 70
 }
Please login to merge, or discard this patch.