@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function __construct() |
30 | 30 | { |
31 | 31 | $this->method = 'GET'; |
32 | - $this->headers = []; |
|
32 | + $this->headers = [ ]; |
|
33 | 33 | $this->body = null; |
34 | 34 | } |
35 | 35 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function addHeader($header, $value) |
81 | 81 | { |
82 | - $this->headers[$header] = $value; |
|
82 | + $this->headers[ $header ] = $value; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function __construct($message, $code) |
16 | 16 | { |
17 | - $this->body = ['message' => $message]; |
|
17 | + $this->body = [ 'message' => $message ]; |
|
18 | 18 | $this->code = $code; |
19 | 19 | } |
20 | 20 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $fields = implode(' ', $fields); |
53 | 53 | } |
54 | 54 | |
55 | - $body[FieldsInterface::NAME] = $fields; |
|
55 | + $body[ FieldsInterface::NAME ] = $fields; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | return $body; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $collection = new ArrayCollection(); |
25 | 25 | |
26 | 26 | if ($response->getStatusCode() === 200) { |
27 | - $data = (string)$response->getBody(); |
|
27 | + $data = (string) $response->getBody(); |
|
28 | 28 | |
29 | 29 | try { |
30 | 30 | $data = $jsonDecoder->decode($data); |
@@ -42,8 +42,8 @@ |
||
42 | 42 | $system->setHostname($data->hostname); |
43 | 43 | $system->setDisplayName($data->displayName); |
44 | 44 | $system->setRemoteIP($data->remoteIP); |
45 | - $system->setActive((bool)$data->active); |
|
46 | - $system->setNetworkInterfaces((array)$data->networkInterfaces); |
|
45 | + $system->setActive((bool) $data->active); |
|
46 | + $system->setNetworkInterfaces((array) $data->networkInterfaces); |
|
47 | 47 | |
48 | 48 | return $system; |
49 | 49 | } |