Passed
Branch account (e3661f)
by vincent
02:30
created
src/VfacTmdb/Abstracts/Results.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Abstracts/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Search.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,8 @@  discard block
 block discarded – undo
79 79
             $this->total_results = (int) $response->total_results;
80 80
 
81 81
             return $this->searchItemGenerator($response->results, $result_class);
82
-        } catch (TmdbException $ex) {
82
+        }
83
+        catch (TmdbException $ex) {
83 84
             throw $ex;
84 85
         }
85 86
     }
@@ -96,7 +97,8 @@  discard block
 block discarded – undo
96 97
         try {
97 98
             $this->logger->debug('Starting search movie', array('query' => $query, 'options' => $options));
98 99
             return $this->searchItem('movie', $query, $options, Results\Movie::class);
99
-        } catch (TmdbException $ex) {
100
+        }
101
+        catch (TmdbException $ex) {
100 102
             throw $ex;
101 103
         }
102 104
     }
@@ -113,7 +115,8 @@  discard block
 block discarded – undo
113 115
         try {
114 116
             $this->logger->debug('Starting search tv show', array('query' => $query, 'options' => $options));
115 117
             return $this->searchItem('tv', $query, $options, Results\TVShow::class);
116
-        } catch (TmdbException $ex) {
118
+        }
119
+        catch (TmdbException $ex) {
117 120
             throw $ex;
118 121
         }
119 122
     }
@@ -130,7 +133,8 @@  discard block
 block discarded – undo
130 133
         try {
131 134
             $this->logger->debug('Starting search collection', array('query' => $query, 'options' => $options));
132 135
             return $this->searchItem('collection', $query, $options, Results\Collection::class);
133
-        } catch (TmdbException $ex) {
136
+        }
137
+        catch (TmdbException $ex) {
134 138
             throw $ex;
135 139
         }
136 140
     }
@@ -147,7 +151,8 @@  discard block
 block discarded – undo
147 151
         try {
148 152
             $this->logger->debug('Starting search people', array('query' => $query, 'options' => $options));
149 153
             return $this->searchItem('person', $query, $options, Results\People::class);
150
-        } catch (TmdbException $ex) {
154
+        }
155
+        catch (TmdbException $ex) {
151 156
             throw $ex;
152 157
         }
153 158
     }
@@ -164,7 +169,8 @@  discard block
 block discarded – undo
164 169
         try {
165 170
             $this->logger->debug('Starting search company', array('query' => $query, 'options' => $options));
166 171
             return $this->searchItem('company', $query, $options, Results\Company::class);
167
-        } catch (TmdbException $ex) {
172
+        }
173
+        catch (TmdbException $ex) {
168 174
             throw $ex;
169 175
         }
170 176
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Catalog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Tmdb.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -167,15 +167,15 @@
 block discarded – undo
167 167
     {
168 168
         $res = new \stdClass();
169 169
         switch ($method) {
170
-              case 'GET':
170
+                case 'GET':
171 171
                   $res = $this->http_request->getResponse($url);
172
-                  break;
173
-              case 'POST':
172
+                    break;
173
+                case 'POST':
174 174
                   $res = $this->http_request->postResponse($url, [], $form_params);
175
-                  break;
176
-              case 'DELETE':
175
+                    break;
176
+                case 'DELETE':
177 177
                   $res = $this->http_request->deleteResponse($url);
178
-                  break;
178
+                    break;
179 179
         }
180 180
 
181 181
         if (empty($res->getBody())) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /**
4 4
  * This file is part of the Tmdb package.
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public function checkOptions(array $options) : array
242 242
     {
243
-        $params                  = [];
243
+        $params = [];
244 244
         // Check options
245 245
         foreach ($options as $key => $value) {
246 246
             switch ($key) {
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
             default:
314 314
                 throw new IncorrectParamException;
315 315
         }
316
-        return 'created_at.'.$direction;
316
+        return 'created_at.' . $direction;
317 317
     }
318 318
 
319 319
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,8 @@
 block discarded – undo
227 227
                 $this->configuration = $this->getRequest('configuration');
228 228
             }
229 229
             return $this->configuration;
230
-        } catch (TmdbException $ex) {
230
+        }
231
+        catch (TmdbException $ex) {
231 232
             throw $ex;
232 233
         }
233 234
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Factory/Builder/NullLoggerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/Factory/Builder/MonologBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
src/VfacTmdb/lib/Guzzle/Client.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 /**
3 3
  * This file is part of the Tmdb package.
4 4
  *
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
             ]);
62 62
 
63 63
             return $this->guzzleClient->request($method, $url, $params);
64
-        } catch (RequestException $e) {
64
+        }
65
+        catch (RequestException $e) {
65 66
             if (is_null($e->getResponse())) {
66 67
                 throw new HttpErrorException;
67 68
             }
Please login to merge, or discard this patch.