@@ -30,8 +30,7 @@ |
||
| 30 | 30 | $this->conf = $this->tmdb->getConfiguration(); |
| 31 | 31 | $params = $this->tmdb->checkOptions($options); |
| 32 | 32 | $this->data = $this->tmdb->sendRequest(new CurlRequest(), $item_name . '/' . (int) $item_id, null, $params); |
| 33 | - } |
|
| 34 | - catch (\Exception $ex) |
|
| 33 | + } catch (\Exception $ex) |
|
| 35 | 34 | { |
| 36 | 35 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 37 | 36 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $properties = get_object_vars($this); |
| 25 | 25 | foreach (array_keys($properties) as $property) |
| 26 | 26 | { |
| 27 | - if ( ! in_array($property, $this->property_blacklist) && !property_exists($result, $property)) |
|
| 27 | + if (!in_array($property, $this->property_blacklist) && !property_exists($result, $property)) |
|
| 28 | 28 | { |
| 29 | 29 | throw new \Exception('Incorrect input for ' . __CLASS__ . ' object. Property "' . $property . '" not found'); |
| 30 | 30 | } |