@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function stats(string $filter = null, int $limit = null, string $format = null) |
163 | 163 | { |
164 | - $filter = empty($filter) || ! in_array($filter, $this->filters) ? $this->filter : $filter; |
|
164 | + $filter = empty($filter) || !in_array($filter, $this->filters) ? $this->filter : $filter; |
|
165 | 165 | |
166 | 166 | $params = [ |
167 | 167 | 'action' => 'stats', |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | 'format' => $this->setFormat($format), |
170 | 170 | ]; |
171 | 171 | |
172 | - if (! empty($limit)) { |
|
172 | + if (!empty($limit)) { |
|
173 | 173 | $params = array_merge($params, ['limit' => $limit]); |
174 | 174 | } |
175 | 175 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | $result = $this->client->request('POST', 'yourls-api.php', ['form_params' => $form_params]); |
209 | 209 | |
210 | - if (! $result || '200' != $result->getStatusCode()) { |
|
210 | + if (!$result || '200' != $result->getStatusCode()) { |
|
211 | 211 | throw new \Exception('Failed to process request'); |
212 | 212 | } |
213 | 213 | |
@@ -236,6 +236,6 @@ discard block |
||
236 | 236 | */ |
237 | 237 | protected function setFormat(string $format = null) |
238 | 238 | { |
239 | - return empty($format) || ! in_array($format, $this->formats) ? $this->format : $format; |
|
239 | + return empty($format) || !in_array($format, $this->formats) ? $this->format : $format; |
|
240 | 240 | } |
241 | 241 | } |