Completed
Branch account (67fd83)
by vincent
05:37
created
src/VfacTmdb/Tmdb.php 2 patches
Spacing   +4 added lines, -4 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.
@@ -167,12 +167,12 @@  discard block
 block discarded – undo
167 167
     {
168 168
         try {
169 169
             $res = new \stdClass();
170
-            $method_name = $method.'Response';
170
+            $method_name = $method . 'Response';
171 171
             $res = $this->http_request->$method_name($url, [], $form_params);
172 172
             $response = $this->decodeRequest($res, $method, $url, $form_params);
173 173
             return $response;
174 174
         } catch (TmdbException $e) {
175
-            $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params));
175
+            $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params));
176 176
             throw $e;
177 177
         }
178 178
     }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
                 default:
339 339
                     throw new IncorrectParamException;
340 340
             }
341
-            $return['sort_by'] = 'created_at.'.$options['sort_by'];
341
+            $return['sort_by'] = 'created_at.' . $options['sort_by'];
342 342
         }
343 343
     }
344 344
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,8 @@  discard block
 block discarded – undo
171 171
             $res = $this->http_request->$method_name($url, [], $form_params);
172 172
             $response = $this->decodeRequest($res, $method, $url, $form_params);
173 173
             return $response;
174
-        } catch (TmdbException $e) {
174
+        }
175
+        catch (TmdbException $e) {
175 176
             $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params));
176 177
             throw $e;
177 178
         }
@@ -236,7 +237,8 @@  discard block
 block discarded – undo
236 237
                 $this->configuration = $this->getRequest('configuration');
237 238
             }
238 239
             return $this->configuration;
239
-        } catch (TmdbException $ex) {
240
+        }
241
+        catch (TmdbException $ex) {
240 242
             throw $ex;
241 243
         }
242 244
     }
Please login to merge, or discard this patch.