@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | protected $accessToken; |
96 | 96 | |
97 | - public function __construct(array $options = []) |
|
97 | + public function __construct(array $options = [ ]) |
|
98 | 98 | { |
99 | 99 | Config::setOptions($options); |
100 | 100 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->httpClient = $client; |
107 | 107 | } |
108 | 108 | |
109 | - protected function makeRequest(string $verb, string $uri, array $parameters = []) |
|
109 | + protected function makeRequest(string $verb, string $uri, array $parameters = [ ]) |
|
110 | 110 | { |
111 | 111 | $url = Config::get('productionApiUrl'); |
112 | 112 | |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | |
117 | 117 | $url = $url . '/' . $uri; |
118 | 118 | |
119 | - $config = []; |
|
120 | - $config['headers'] = [ |
|
119 | + $config = [ ]; |
|
120 | + $config[ 'headers' ] = [ |
|
121 | 121 | 'Accept' => 'application/json', |
122 | 122 | 'Content-Type' => 'application/json', |
123 | 123 | 'Authorization' => 'Bearer ' . $this->getAccessToken(), |
@@ -125,9 +125,9 @@ discard block |
||
125 | 125 | |
126 | 126 | if (!empty($parameters)) { |
127 | 127 | if (strtolower($verb) == 'get') { |
128 | - $config['query'] = $parameters; |
|
128 | + $config[ 'query' ] = $parameters; |
|
129 | 129 | } else { |
130 | - $config['json'] = $parameters; |
|
130 | + $config[ 'json' ] = $parameters; |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 |