Skip to content

Commit 55f8495

Browse files
committed
Fix PHPCS
1 parent a8adade commit 55f8495

11 files changed

Lines changed: 6 additions & 19 deletions

File tree

lib/Tmdb/Api/TvEpisodeGroup.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ public function getEpisodeGroup(
4343
$headers
4444
);
4545
}
46-
4746
}

lib/Tmdb/Factory/MovieFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function create(array $data = []): ?AbstractModel
211211
$watchProviders = new GenericCollection();
212212
foreach ($data['watch/providers']['results'] as $iso31661 => $countryWatchData) {
213213
$countryWatchData['iso_3166_1'] = $iso31661;
214-
214+
215215
foreach (['flatrate', 'rent', 'buy'] as $providerType) {
216216
$typeProviders = new GenericCollection();
217217
foreach ($countryWatchData[$providerType] ?? [] as $providerData) {
@@ -221,14 +221,14 @@ public function create(array $data = []): ?AbstractModel
221221
if (isset($providerData['provider_name'])) {
222222
$providerData['name'] = $providerData['provider_name'];
223223
}
224-
224+
225225
$providerData['iso_3166_1'] = $iso31661;
226226
$providerData['type'] = $providerType;
227227
$typeProviders->add(null, $this->hydrate(new Watch\Provider(), $providerData));
228228
}
229229
$countryWatchData[$providerType] = $typeProviders;
230230
}
231-
231+
232232
$watchProviders->add($iso31661, $this->hydrate(new Watch\Providers(), $countryWatchData));
233233
}
234234
$movie->setWatchProviders($watchProviders);

lib/Tmdb/Factory/TvEpisodeGroupFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function create(array $data = []): ?AbstractModel
7171

7272
$episodeGroup = new EpisodeGroup();
7373

74-
if(array_key_exists('network', $data) && !is_null($data['network'])){
74+
if (array_key_exists('network', $data) && !is_null($data['network'])) {
7575
$episodeGroup->setNetwork($this->hydrate(new Network(), $data['network']));
7676
}
7777

@@ -81,5 +81,4 @@ public function create(array $data = []): ?AbstractModel
8181

8282
return $this->hydrate($episodeGroup, $data);
8383
}
84-
8584
}

lib/Tmdb/Factory/TvFactory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ public function create(array $data = []): ?AbstractModel
348348
$episodeGroupCollection = new GenericCollection();
349349

350350
foreach ($data['episode_groups']['results'] as $episodeGroup) {
351-
352-
353-
if(!is_null($episodeGroup['network'])){
351+
if (!is_null($episodeGroup['network'])) {
354352
$episodeGroup['network'] = $this->hydrate(new Network(), $episodeGroup['network']);
355353
}
356354

lib/Tmdb/Model/Network.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,4 @@ public function setOriginCountry(string $originCountry): Network
177177

178178
return $this;
179179
}
180-
181180
}

lib/Tmdb/Model/Tv.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,5 +1093,4 @@ public function setEpisodeGroups(GenericCollection $episodeGroups): Tv
10931093

10941094
return $this;
10951095
}
1096-
10971096
}

lib/Tmdb/Model/Tv/Episode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,5 +503,4 @@ public function setShowId(int $showId): Episode
503503

504504
return $this;
505505
}
506-
507506
}

lib/Tmdb/Model/Tv/EpisodeGroup.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class EpisodeGroup extends AbstractModel
7979
*/
8080
public function __construct()
8181
{
82-
8382
}
8483

8584
/**
@@ -233,6 +232,4 @@ public function setGroups(GenericCollection $groups): EpisodeGroup
233232

234233
return $this;
235234
}
236-
237-
238235
}

lib/Tmdb/Model/Tv/EpisodeGroups.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class EpisodeGroups extends AbstractModel
8383
*/
8484
public function __construct()
8585
{
86-
8786
}
8887

8988
/**
@@ -218,5 +217,4 @@ public function setType(int $type): EpisodeGroups
218217

219218
return $this;
220219
}
221-
222220
}

lib/Tmdb/Model/Watch/Providers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Providers extends AbstractModel implements CountryFilter
3636
private $flatrate;
3737
private $rent;
3838
private $buy;
39-
39+
4040
/**
4141
* Constructor
4242
*

0 commit comments

Comments
 (0)