Skip to content

Commit

Permalink
Merge pull request #1223 from NNTmux/analysis-nNmvPA
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
DariusIII authored Jan 31, 2022
2 parents e8e80b9 + bfb748b commit 0785ac2
Showing 1 changed file with 14 additions and 13 deletions.
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

0 comments on commit 0785ac2

Please sign in to comment.