@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function extractConfig(array $builderConfig) |
| 93 | 93 | { |
| 94 | - return isset($builderConfig['config']) ? $builderConfig['config']:[]; |
|
| 94 | + return isset($builderConfig['config']) ? $builderConfig['config'] : []; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function checkDependency(BuilderInterface $builder) |
| 104 | 104 | { |
| 105 | - if (! class_exists($builder->getMainClassName())) { |
|
| 105 | + if (!class_exists($builder->getMainClassName())) { |
|
| 106 | 106 | $message = "missing {$builder->getPackageName()}, please install it using composer : composer require {$builder->getPackageName()}"; |
| 107 | 107 | throw new MissingDependencyException($message); |
| 108 | 108 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function getCrew() |
| 31 | 31 | { |
| 32 | - if ( ! empty($this->data->crew)) |
|
| 32 | + if (!empty($this->data->crew)) |
|
| 33 | 33 | { |
| 34 | 34 | foreach ($this->data->crew as $crew) |
| 35 | 35 | { |
@@ -32,22 +32,22 @@ discard block |
||
| 32 | 32 | * Adult |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - protected $adult = null; |
|
| 35 | + protected $adult = null; |
|
| 36 | 36 | /** |
| 37 | 37 | * People known for |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - protected $known_for = null; |
|
| 40 | + protected $known_for = null; |
|
| 41 | 41 | /** |
| 42 | 42 | * People name |
| 43 | 43 | * @var string |
| 44 | 44 | */ |
| 45 | - protected $name = null; |
|
| 45 | + protected $name = null; |
|
| 46 | 46 | /** |
| 47 | 47 | * Popularity |
| 48 | 48 | * @var int |
| 49 | 49 | */ |
| 50 | - protected $popularity = null; |
|
| 50 | + protected $popularity = null; |
|
| 51 | 51 | /** |
| 52 | 52 | * Image profile path |
| 53 | 53 | * @var string |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * Id |
| 58 | 58 | * @var int |
| 59 | 59 | */ |
| 60 | - protected $id = null; |
|
| 60 | + protected $id = null; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Constructor |
@@ -37,37 +37,37 @@ discard block |
||
| 37 | 37 | * Episode number |
| 38 | 38 | * @var int |
| 39 | 39 | */ |
| 40 | - protected $episode_number = 0; |
|
| 40 | + protected $episode_number = 0; |
|
| 41 | 41 | /** |
| 42 | 42 | * Name |
| 43 | 43 | * @var string |
| 44 | 44 | */ |
| 45 | - protected $name = ''; |
|
| 45 | + protected $name = ''; |
|
| 46 | 46 | /** |
| 47 | 47 | * Air date |
| 48 | 48 | * @var string |
| 49 | 49 | */ |
| 50 | - protected $air_date = null; |
|
| 50 | + protected $air_date = null; |
|
| 51 | 51 | /** |
| 52 | 52 | * Season number |
| 53 | 53 | * @var int |
| 54 | 54 | */ |
| 55 | - protected $season_number = 0; |
|
| 55 | + protected $season_number = 0; |
|
| 56 | 56 | /** |
| 57 | 57 | * Vote average |
| 58 | 58 | * @var float |
| 59 | 59 | */ |
| 60 | - protected $vote_average = 0; |
|
| 60 | + protected $vote_average = 0; |
|
| 61 | 61 | /** |
| 62 | 62 | * Vote count |
| 63 | 63 | * @var int |
| 64 | 64 | */ |
| 65 | - protected $vote_count = 0; |
|
| 65 | + protected $vote_count = 0; |
|
| 66 | 66 | /** |
| 67 | 67 | * Overview |
| 68 | 68 | * @var string |
| 69 | 69 | */ |
| 70 | - protected $overview = ''; |
|
| 70 | + protected $overview = ''; |
|
| 71 | 71 | /** |
| 72 | 72 | * Production code |
| 73 | 73 | * @var string |
@@ -77,12 +77,12 @@ discard block |
||
| 77 | 77 | * Image still path |
| 78 | 78 | * @var string |
| 79 | 79 | */ |
| 80 | - protected $still_path = ''; |
|
| 80 | + protected $still_path = ''; |
|
| 81 | 81 | /** |
| 82 | 82 | * Id |
| 83 | 83 | * @var int |
| 84 | 84 | */ |
| 85 | - protected $id = null; |
|
| 85 | + protected $id = null; |
|
| 86 | 86 | /** |
| 87 | 87 | * Guest stars |
| 88 | 88 | * @var array |
@@ -33,12 +33,12 @@ |
||
| 33 | 33 | * Image poster path |
| 34 | 34 | * @var string |
| 35 | 35 | */ |
| 36 | - protected $poster_path = null; |
|
| 36 | + protected $poster_path = null; |
|
| 37 | 37 | /** |
| 38 | 38 | * Image backdrop path |
| 39 | 39 | * @var string |
| 40 | 40 | */ |
| 41 | - protected $backdrop_path = null; |
|
| 41 | + protected $backdrop_path = null; |
|
| 42 | 42 | |
| 43 | 43 | use ElementTrait; |
| 44 | 44 | use ShowTrait; |
@@ -31,27 +31,27 @@ discard block |
||
| 31 | 31 | * Department |
| 32 | 32 | * @var string |
| 33 | 33 | */ |
| 34 | - protected $department = null; |
|
| 34 | + protected $department = null; |
|
| 35 | 35 | /** |
| 36 | 36 | * Gender |
| 37 | 37 | * @var string |
| 38 | 38 | */ |
| 39 | - protected $gender = null; |
|
| 39 | + protected $gender = null; |
|
| 40 | 40 | /** |
| 41 | 41 | * Credit id |
| 42 | 42 | * @var string |
| 43 | 43 | */ |
| 44 | - protected $credit_id = null; |
|
| 44 | + protected $credit_id = null; |
|
| 45 | 45 | /** |
| 46 | 46 | * Job |
| 47 | 47 | * @var string |
| 48 | 48 | */ |
| 49 | - protected $job = null; |
|
| 49 | + protected $job = null; |
|
| 50 | 50 | /** |
| 51 | 51 | * Name |
| 52 | 52 | * @var string |
| 53 | 53 | */ |
| 54 | - protected $name = null; |
|
| 54 | + protected $name = null; |
|
| 55 | 55 | /** |
| 56 | 56 | * Image profile path |
| 57 | 57 | * @var string |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * Id |
| 62 | 62 | * @var int |
| 63 | 63 | */ |
| 64 | - protected $id = null; |
|
| 64 | + protected $id = null; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Constructor |
@@ -45,17 +45,17 @@ |
||
| 45 | 45 | * Image poster path |
| 46 | 46 | * @var string |
| 47 | 47 | */ |
| 48 | - protected $poster_path = null; |
|
| 48 | + protected $poster_path = null; |
|
| 49 | 49 | /** |
| 50 | 50 | * Air date |
| 51 | 51 | * @var string |
| 52 | 52 | */ |
| 53 | - protected $air_date = null; |
|
| 53 | + protected $air_date = null; |
|
| 54 | 54 | /** |
| 55 | 55 | * Id |
| 56 | 56 | * @var int |
| 57 | 57 | */ |
| 58 | - protected $id = null; |
|
| 58 | + protected $id = null; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Constructor |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * Collection name |
| 32 | 32 | * @var string |
| 33 | 33 | */ |
| 34 | - protected $name = null; |
|
| 34 | + protected $name = null; |
|
| 35 | 35 | /** |
| 36 | 36 | * Collection image logo path |
| 37 | 37 | * @var string |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * Collection Id |
| 42 | 42 | * @var int |
| 43 | 43 | */ |
| 44 | - protected $id = null; |
|
| 44 | + protected $id = null; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Constructor |
@@ -29,27 +29,27 @@ discard block |
||
| 29 | 29 | * Character name |
| 30 | 30 | * @var string |
| 31 | 31 | */ |
| 32 | - protected $character = null; |
|
| 32 | + protected $character = null; |
|
| 33 | 33 | /** |
| 34 | 34 | * Gender |
| 35 | 35 | * @var string |
| 36 | 36 | */ |
| 37 | - protected $gender = null; |
|
| 37 | + protected $gender = null; |
|
| 38 | 38 | /** |
| 39 | 39 | * Credit Id |
| 40 | 40 | * @var string |
| 41 | 41 | */ |
| 42 | - protected $credit_id = null; |
|
| 42 | + protected $credit_id = null; |
|
| 43 | 43 | /** |
| 44 | 44 | * Cast Id |
| 45 | 45 | * @var int |
| 46 | 46 | */ |
| 47 | - protected $cast_id = null; |
|
| 47 | + protected $cast_id = null; |
|
| 48 | 48 | /** |
| 49 | 49 | * Name |
| 50 | 50 | * @var string |
| 51 | 51 | */ |
| 52 | - protected $name = null; |
|
| 52 | + protected $name = null; |
|
| 53 | 53 | /** |
| 54 | 54 | * Image profile path |
| 55 | 55 | * @var string |
@@ -59,12 +59,12 @@ discard block |
||
| 59 | 59 | * Order in cast |
| 60 | 60 | * @var int |
| 61 | 61 | */ |
| 62 | - protected $order = null; |
|
| 62 | + protected $order = null; |
|
| 63 | 63 | /** |
| 64 | 64 | * Id |
| 65 | 65 | * @var int |
| 66 | 66 | */ |
| 67 | - protected $id = null; |
|
| 67 | + protected $id = null; |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Constructor |