Passed
Branch account (456cf6)
by vincent
02:35
created
src/VfacTmdb/Account/Favorite.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,6 @@
 block discarded – undo
56 56
         return $this->setListItem('favorite', 'movie', $movie_id, true);
57 57
     }
58 58
     /**
59
-
60 59
      * Unmark a movie as favorite
61 60
      * @param int $movie_id Movie id
62 61
      * @return Favorite
Please login to merge, or discard this patch.
src/VfacTmdb/Abstracts/Account.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,8 @@
 block discarded – undo
95 95
             $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params);
96 96
 
97 97
             return $this;
98
-        } catch (TmdbException $e) {
98
+        }
99
+        catch (TmdbException $e) {
99 100
             throw $e;
100 101
         }
101 102
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $params['media_id']   = $media_id;
110 110
             $params[$list_type]   = $add;
111 111
 
112
-            $this->tmdb->postRequest('account/'.$this->account_id.'/'.$list_type, $this->options, $params);
112
+            $this->tmdb->postRequest('account/' . $this->account_id . '/' . $list_type, $this->options, $params);
113 113
 
114 114
             return $this;
115 115
         } catch (TmdbException $e) {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->tmdb->checkOptionSortBy($this->options, $options);
133 133
         $this->tmdb->checkOptionPage($this->options, $options);
134 134
 
135
-        $response = $this->tmdb->getRequest('account/'.$this->account_id.'/'.$list_type.'/'.$item, $options);
135
+        $response = $this->tmdb->getRequest('account/' . $this->account_id . '/' . $list_type . '/' . $item, $options);
136 136
 
137 137
         $this->page          = (int) $response->page;
138 138
         $this->total_pages   = (int) $response->total_pages;
Please login to merge, or discard this patch.
src/VfacTmdb/Abstracts/Item.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,8 @@
 block discarded – undo
74 74
             $this->tmdb->checkOptionLanguage($options, $this->params);
75 75
 
76 76
             $this->data   = $this->tmdb->getRequest($item_name . '/' . (int) $item_id, $this->params);
77
-        } catch (TmdbException $ex) {
77
+        }
78
+        catch (TmdbException $ex) {
78 79
             throw $ex;
79 80
         }
80 81
     }
Please login to merge, or discard this patch.
src/VfacTmdb/Abstracts/Items/PeopleItemCredit.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@
 block discarded – undo
53 53
             $this->tmdb->checkOptionLanguage($options, $this->params);
54 54
 
55 55
             $this->data   = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params);
56
-        } catch (TmdbException $ex) {
56
+        }
57
+        catch (TmdbException $ex) {
57 58
             throw $ex;
58 59
         }
59 60
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
             $this->tmdb->checkOptionLanguage($options, $this->params);
54 54
 
55
-            $this->data   = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params);
55
+            $this->data = $this->tmdb->getRequest('person/' . $item_id . '/' . $item_type . '_credits', $this->params);
56 56
         } catch (TmdbException $ex) {
57 57
             throw $ex;
58 58
         }
Please login to merge, or discard this patch.
src/VfacTmdb/Tmdb.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,12 +149,12 @@  discard block
 block discarded – undo
149 149
     {
150 150
         try {
151 151
             $res = new \stdClass();
152
-            $method_name = $method.'Response';
152
+            $method_name = $method . 'Response';
153 153
             $res = $this->http_request->$method_name($url, [], $form_params);
154 154
             $response = $this->decodeRequest($res, $method, $url, $form_params);
155 155
             return $response;
156 156
         } catch (TmdbException $e) {
157
-            $this->logger->error('sendRequest failed : '.$e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params));
157
+            $this->logger->error('sendRequest failed : ' . $e->getMessage(), array('method' => $method, 'url' => $url, 'form_params' => $form_params));
158 158
             throw $e;
159 159
         }
160 160
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
                 default:
321 321
                     throw new IncorrectParamException;
322 322
             }
323
-            $return['sort_by'] = 'created_at.'.$options['sort_by'];
323
+            $return['sort_by'] = 'created_at.' . $options['sort_by'];
324 324
         }
325 325
     }
326 326
 
Please login to merge, or discard this patch.
src/VfacTmdb/Abstracts/Items/TVItem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $options = [];
78 78
         $this->tmdb->checkOptionLanguage($this->params, $options);
79 79
 
80
-        $data   = $this->tmdb->getRequest($params->url, $options);
80
+        $data = $this->tmdb->getRequest($params->url, $options);
81 81
 
82 82
         foreach ($data->$key as $b) {
83 83
             $image = new Results\Image($this->tmdb, $this->id, $b);
Please login to merge, or discard this patch.