Completed
Pull Request — master (#4)
by Craig
06:48 queued 01:32
created
src/LaravelYourlsPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.