@@ -30,7 +30,7 @@ |
||
30 | 30 | * |
31 | 31 | * @var LoggerInterface |
32 | 32 | */ |
33 | - public $logger = null; |
|
33 | + public $logger = null; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Constructor |
@@ -50,12 +50,12 @@ |
||
50 | 50 | */ |
51 | 51 | public function extractConfig(array $builderConfig) |
52 | 52 | { |
53 | - return isset($builderConfig['config']) ? $builderConfig['config']:[]; |
|
53 | + return isset($builderConfig['config']) ? $builderConfig['config'] : []; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | public function checkDependency(BuilderInterface $builder) |
57 | 57 | { |
58 | - if (! class_exists($builder->getMainCLassName())) { |
|
58 | + if (!class_exists($builder->getMainCLassName())) { |
|
59 | 59 | $message = "missing {$builder->getPackageName()}, please install it using composer : composer require {$builder->getPackageName()}"; |
60 | 60 | throw new MissingDependencyException($message); |
61 | 61 | } |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function __construct(array $config = []) |
27 | 27 | { |
28 | - $this->loggerName = isset($config['name']) ? $config['name']:$this->loggerName; |
|
28 | + $this->loggerName = isset($config['name']) ? $config['name'] : $this->loggerName; |
|
29 | 29 | |
30 | - $this->handlersConfig = isset($config['handlers']) ? $config['handlers']:$this->handlersConfig; |
|
30 | + $this->handlersConfig = isset($config['handlers']) ? $config['handlers'] : $this->handlersConfig; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | $reflection = new \ReflectionClass($class); |
57 | 57 | |
58 | - if (! $reflection->implementsInterface('Monolog\Handler\HandlerInterface')) { |
|
58 | + if (!$reflection->implementsInterface('Monolog\Handler\HandlerInterface')) { |
|
59 | 59 | throw new \InvalidArgumentException(); |
60 | 60 | } |
61 | 61 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | protected $episode_count = 0; |
13 | 13 | protected $season_number = 0; |
14 | 14 | protected $poster_path = null; |
15 | - protected $air_date = null; |
|
15 | + protected $air_date = null; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Constructor |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | // Populate data |
28 | 28 | $this->id = $this->data->id; |
29 | - $this->air_date = $this->data->air_date; |
|
29 | + $this->air_date = $this->data->air_date; |
|
30 | 30 | $this->episode_count = $this->data->episode_count; |
31 | 31 | $this->poster_path = $this->data->poster_path; |
32 | 32 | $this->season_number = $this->data->season_number; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $properties = get_object_vars($this); |
30 | 30 | foreach (array_keys($properties) as $property) |
31 | 31 | { |
32 | - if ( ! in_array($property, $this->property_blacklist) && ! property_exists($result, $property)) |
|
32 | + if (!in_array($property, $this->property_blacklist) && !property_exists($result, $property)) |
|
33 | 33 | { |
34 | 34 | throw new NotFoundException($property); |
35 | 35 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | throw new IncorrectParamException; |
48 | 48 | } |
49 | 49 | $params = $this->tmdb->checkOptions($options); |
50 | - $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/'.$item, $query, $params); |
|
50 | + $response = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), 'search/' . $item, $query, $params); |
|
51 | 51 | |
52 | 52 | $this->page = (int) $response->page; |
53 | 53 | $this->total_pages = (int) $response->total_pages; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | public function getCrew() |
55 | 55 | { |
56 | - if (! empty($this->data->crew)) { |
|
56 | + if (!empty($this->data->crew)) { |
|
57 | 57 | foreach ($this->data->crew as $crew) { |
58 | 58 | $crew->gender = null; |
59 | 59 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $this->logger = $tmdb->logger; |
36 | 36 | $this->conf = $this->tmdb->getConfiguration(); |
37 | 37 | $this->params = $this->tmdb->checkOptions($options); |
38 | - $this->data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), $item_name.'/'.(int) $item_id, null, $this->params); |
|
38 | + $this->data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), $item_name . '/' . (int) $item_id, null, $this->params); |
|
39 | 39 | } |
40 | 40 | catch (TmdbException $ex) |
41 | 41 | { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | public function getMovies() |
75 | 75 | { |
76 | - $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/'.(int) $this->id.'/movies', null, $this->params); |
|
76 | + $data = $this->tmdb->sendRequest(new HttpClient(new \GuzzleHttp\Client()), '/company/' . (int) $this->id . '/movies', null, $this->params); |
|
77 | 77 | |
78 | 78 | foreach ($data->results as $m) |
79 | 79 | { |