Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #1223

Merged
merged 1 commit into from
Jan 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions Blacklight/db/populate/AniDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public function __construct(array $options = [])
/**
* Main switch that initiates AniDB table population.
*
* @param string $type
* @param int|string $aniDbId
* @param string $type
* @param int|string $aniDbId
*
* @throws \Exception
*/
Expand All @@ -111,6 +111,7 @@ public function populateTable(string $type = '', int|string $aniDbId = ''): void
/**
* @param $aniDbId
* @return array|false
*
* @throws \Exception
*/
private function getAniDbAPI($aniDbId)
Expand Down Expand Up @@ -189,8 +190,8 @@ private function getAniDbAPI($aniDbId)

/**
* @param \SimpleXMLElement $element
* @param string|null $property
* @param bool $children
* @param string|null $property
* @param bool $children
* @return string
*/
private function processAPIResponseElement(\SimpleXMLElement $element, string $property = null, bool $children = false): string
Expand Down Expand Up @@ -242,10 +243,10 @@ private function getAniDbResponse($aniDbId): string
/**
* Inserts new anime info from AniDB to anidb table.
*
* @param int $id The AniDB ID to be inserted
* @param string $type The title type
* @param string $lang The title language
* @param string $title The title of the Anime
* @param int $id The AniDB ID to be inserted
* @param string $type The title type
* @param string $lang The title language
* @param string $title The title of the Anime
*/
private function insertAniDb(int $id, string $type, string $lang, string $title): void
{
Expand All @@ -259,7 +260,7 @@ private function insertAniDb(int $id, string $type, string $lang, string $title)
}

/**
* @param array $AniDBInfoArray
* @param array $AniDBInfoArray
* @param $aniDbId
* @return string
*/
Expand Down Expand Up @@ -292,7 +293,7 @@ private function insertAniDBInfoEps($aniDbId, array $AniDBInfoArray = []): strin

/**
* @param $aniDbId
* @param array $episodeArr
* @param array $episodeArr
* @return void
*/
private function insertAniDBEpisodes($aniDbId, array $episodeArr = []): void
Expand Down Expand Up @@ -377,7 +378,7 @@ private function populateMainTable(): void
/**
* Directs flow for populating the AniDB Info/Episodes table.
*
* @param string $aniDbId
* @param string $aniDbId
*
* @throws \Exception
*/
Expand Down Expand Up @@ -439,7 +440,7 @@ private function setLastUpdated(): void

/**
* @param $aniDbId
* @param array $AniDBInfoArray
* @param array $AniDBInfoArray
* @return string
*/
private function updateAniDBInfoEps($aniDbId, array $AniDBInfoArray = []): string
Expand Down Expand Up @@ -471,7 +472,7 @@ private function updateAniDBInfoEps($aniDbId, array $AniDBInfoArray = []): strin

/**
* @param $aniDbId
* @param array $AniDBInfoArray
* @param array $AniDBInfoArray
* @return void
*/
private function updateAniChildTables($aniDbId, array $AniDBInfoArray = []): void
Expand Down