@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Item |
| 10 | 10 | { |
| 11 | - private $tmdb = null; |
|
| 11 | + private $tmdb = null; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Constructor |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $this->tmdb = $tmdb; |
| 29 | 29 | $this->conf = $this->tmdb->getConfiguration(); |
| 30 | 30 | $params = $this->tmdb->checkOptions($options); |
| 31 | - $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/'.(int) $item_id, null, $params); |
|
| 31 | + $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/' . (int) $item_id, null, $params); |
|
| 32 | 32 | } |
| 33 | 33 | catch (\Exception $ex) |
| 34 | 34 | { |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | $this->conf = $this->tmdb->getConfiguration(); |
| 30 | 30 | $params = $this->tmdb->checkOptions($options); |
| 31 | 31 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/'.(int) $item_id, null, $params); |
| 32 | - } |
|
| 33 | - catch (\Exception $ex) |
|
| 32 | + } catch (\Exception $ex) |
|
| 34 | 33 | { |
| 35 | 34 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 36 | 35 | } |