Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function toArray($request) |
||
30 | { |
||
31 | return [ |
||
32 | 'id' => $this->id, |
||
|
|||
33 | 'user_id' => $this->user_id, |
||
34 | 'name' => $this->name, |
||
35 | 'hostname' => $this->hostname, |
||
36 | 'username' => $this->username, |
||
37 | 'os' => $this->os, |
||
38 | 'hash' => $this->hash, |
||
39 | 'active' => $this->active, |
||
40 | 'ip_address' => $this->ip_address, |
||
41 | 'mac_address' => $this->mac_address, |
||
42 | 'memory_usage' => $this->memory_usage, |
||
43 | 'memory_available' => $this->memory_available, |
||
44 | 'cpu_usage' => $this->cpu_usage, |
||
45 | 'cpu_clock' => 5, |
||
46 | 'online' => true, |
||
47 | 'last_heartbeat' => $this->last_heartbeat ?? null, |
||
48 | 'created_at' => $this->created_at, |
||
49 | 'updated_at' => $this->updated_at, |
||
50 | ]; |
||
59 |