@@ -55,7 +55,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 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 |
||
| 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 | } |