Skip to content

Commit

Permalink
Fix PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Dec 11, 2021
1 parent a8adade commit 55f8495
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 19 deletions.
1 change: 0 additions & 1 deletion lib/Tmdb/Api/TvEpisodeGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ public function getEpisodeGroup(
$headers
);
}

}
6 changes: 3 additions & 3 deletions lib/Tmdb/Factory/MovieFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function create(array $data = []): ?AbstractModel
$watchProviders = new GenericCollection();
foreach ($data['watch/providers']['results'] as $iso31661 => $countryWatchData) {
$countryWatchData['iso_3166_1'] = $iso31661;

foreach (['flatrate', 'rent', 'buy'] as $providerType) {
$typeProviders = new GenericCollection();
foreach ($countryWatchData[$providerType] ?? [] as $providerData) {
Expand All @@ -221,14 +221,14 @@ public function create(array $data = []): ?AbstractModel
if (isset($providerData['provider_name'])) {
$providerData['name'] = $providerData['provider_name'];
}

$providerData['iso_3166_1'] = $iso31661;
$providerData['type'] = $providerType;
$typeProviders->add(null, $this->hydrate(new Watch\Provider(), $providerData));
}
$countryWatchData[$providerType] = $typeProviders;
}

$watchProviders->add($iso31661, $this->hydrate(new Watch\Providers(), $countryWatchData));
}
$movie->setWatchProviders($watchProviders);
Expand Down
3 changes: 1 addition & 2 deletions lib/Tmdb/Factory/TvEpisodeGroupFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function create(array $data = []): ?AbstractModel

$episodeGroup = new EpisodeGroup();

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

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

return $this->hydrate($episodeGroup, $data);
}

}
4 changes: 1 addition & 3 deletions lib/Tmdb/Factory/TvFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,7 @@ public function create(array $data = []): ?AbstractModel
$episodeGroupCollection = new GenericCollection();

foreach ($data['episode_groups']['results'] as $episodeGroup) {


if(!is_null($episodeGroup['network'])){
if (!is_null($episodeGroup['network'])) {
$episodeGroup['network'] = $this->hydrate(new Network(), $episodeGroup['network']);
}

Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Model/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,4 @@ public function setOriginCountry(string $originCountry): Network

return $this;
}

}
1 change: 0 additions & 1 deletion lib/Tmdb/Model/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,5 +1093,4 @@ public function setEpisodeGroups(GenericCollection $episodeGroups): Tv

return $this;
}

}
1 change: 0 additions & 1 deletion lib/Tmdb/Model/Tv/Episode.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,5 +503,4 @@ public function setShowId(int $showId): Episode

return $this;
}

}
3 changes: 0 additions & 3 deletions lib/Tmdb/Model/Tv/EpisodeGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class EpisodeGroup extends AbstractModel
*/
public function __construct()
{

}

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

return $this;
}


}
2 changes: 0 additions & 2 deletions lib/Tmdb/Model/Tv/EpisodeGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class EpisodeGroups extends AbstractModel
*/
public function __construct()
{

}

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

return $this;
}

}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Watch/Providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Providers extends AbstractModel implements CountryFilter
private $flatrate;
private $rent;
private $buy;

/**
* Constructor
*
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Repository/TvEpisodeGroupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ public function getFactory()
{
return new TvEpisodeGroupFactory($this->getClient()->getHttpClient());
}

}

0 comments on commit 55f8495

Please sign in to comment.