@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | protected $token; |
| 11 | 11 | protected $resource; |
| 12 | 12 | protected $method; |
| 13 | - protected $parameters = []; |
|
| 13 | + protected $parameters = [ ]; |
|
| 14 | 14 | |
| 15 | 15 | public function __construct($endpoint, $token) { |
| 16 | 16 | $this->endpoint = $endpoint; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $response = $guzzle->get("{$this->endpoint}{$this->resource}", $options); |
| 47 | 47 | break; |
| 48 | 48 | case 'POST': |
| 49 | - $options['json'] = $this->parameters; |
|
| 49 | + $options[ 'json' ] = $this->parameters; |
|
| 50 | 50 | $response = $guzzle->post("{$this->endpoint}{$this->resource}", $options); |
| 51 | 51 | break; |
| 52 | 52 | case 'DELETE': |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | public function getAllServers() { |
| 33 | 33 | $response = $this->gateway->getServers(); |
| 34 | 34 | |
| 35 | - $collection = []; |
|
| 35 | + $collection = [ ]; |
|
| 36 | 36 | |
| 37 | 37 | foreach ($response->servers as $server) { |
| 38 | - $collection[] = Server::makeFromServerJson($server); |
|
| 38 | + $collection[ ] = Server::makeFromServerJson($server); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | return $collection; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | protected $publicIp; |
| 15 | 15 | protected $privateIp; |
| 16 | 16 | protected $commercialType; |
| 17 | - protected $volumes = []; |
|
| 17 | + protected $volumes = [ ]; |
|
| 18 | 18 | |
| 19 | 19 | protected function __construct($server) { |
| 20 | 20 | $this->id = $server->id; |