Showing 10 of 10 total issues
File Anime.php
has 342 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php/** * Class AnidbAnime * @brief Anime Setup * @author gloire
Function getStaff
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public function getStaff() { preg_match_all(parent::PATTERN_STAFF, $this->html, $exArray); if (isset($exArray[1][0]) && isset($exArray[2][0])) { $firstId = $exArray[1][0];
- Read upRead up
Method getStaff
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getStaff() { preg_match_all(parent::PATTERN_STAFF, $this->html, $exArray); if (isset($exArray[1][0]) && isset($exArray[2][0])) { $firstId = $exArray[1][0];
Anime
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
final class Anime extends Options{ /** * @param $cloud_name * @param $key
Method getCharacters
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getCharacters() { preg_match_all(parent::PATTERN_CHARACTERS, $this->html, $mainCharArray); if (!empty($mainCharArray[0])) { $firstCharId = $mainCharArray[7][0];
Method getCast
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getCast() { preg_match_all(parent::PATTERN_CAST, $this->html, $castArray); if (!empty($castArray[0])) { $firstCastId = $castArray[2][0];
Method getDirectlyRelatedAnimes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getDirectlyRelatedAnimes() { preg_match_all(parent::PATTERN_DIRECTLY_RELATED, $this->html, $directArr); if (empty($directArr[0])) { preg_match_all(parent::PATTERN_CONTROL_DIRECTLY_RELATED, $this->html, $directArr);
Function getCast
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getCast() { preg_match_all(parent::PATTERN_CAST, $this->html, $castArray); if (!empty($castArray[0])) { $firstCastId = $castArray[2][0];
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (!empty($directArr[0])) { $del = explode('/', $directArr[3][0]); $firstKey = end($del); $firstValue = $directArr[4][0];
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
if (!empty($similarArray[0])) { $del = explode('/', $similarArray[3][0]); $firstKey = end($del); $firstValue = $similarArray[4][0];
- Read upRead up