@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $_type; |
|
| 18 | + private $_type; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Default constructor. |
@@ -25,15 +25,15 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @return void |
| 27 | 27 | */ |
| 28 | - public function __construct($type, $parserArea = '.anime-manga-search .genre-link') |
|
| 28 | + public function __construct($type, $parserArea = '.anime-manga-search .genre-link') |
|
| 29 | 29 | { |
| 30 | - $this->_type = $type; |
|
| 30 | + $this->_type = $type; |
|
| 31 | 31 | if ($type == 'anime') { |
| 32 | 32 | $this->_url = $this->_myAnimeListUrl.'/anime.php'; |
| 33 | 33 | } else { |
| 34 | 34 | $this->_url = $this->_myAnimeListUrl.'/manga.php'; |
| 35 | 35 | } |
| 36 | - $this->_parserArea = $parserArea; |
|
| 36 | + $this->_parserArea = $parserArea; |
|
| 37 | 37 | |
| 38 | 38 | parent::errorCheck($this); |
| 39 | 39 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @var string|int |
| 24 | 24 | */ |
| 25 | - private $_id; |
|
| 25 | + private $_id; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Default constructor. |
@@ -32,9 +32,9 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function __construct($type, $id, $parserArea = '#content table tr td') |
|
| 35 | + public function __construct($type, $id, $parserArea = '#content table tr td') |
|
| 36 | 36 | { |
| 37 | - $this->_type = $type; |
|
| 37 | + $this->_type = $type; |
|
| 38 | 38 | $this->_id = $id; |
| 39 | 39 | if ($this->_type == 'people') { |
| 40 | 40 | $this->_url = $this->_myAnimeListUrl.'/people/'.$id; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | private function getId() |
| 80 | 80 | { |
| 81 | - return $this->_id; |
|
| 81 | + return $this->_id; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @var string|int |
| 31 | 31 | */ |
| 32 | - private $_id; |
|
| 32 | + private $_id; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Page number. |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @return void |
| 50 | 50 | */ |
| 51 | - public function __construct($type, $type2, $id, $page = 1, $parserArea = '#content .js-categories-seasonal') |
|
| 51 | + public function __construct($type, $type2, $id, $page = 1, $parserArea = '#content .js-categories-seasonal') |
|
| 52 | 52 | { |
| 53 | 53 | $this->_type = $type; |
| 54 | 54 | $this->_type2 = $type2; |
| 55 | 55 | $this->_id = $id; |
| 56 | - $this->_page = $page; |
|
| 56 | + $this->_page = $page; |
|
| 57 | 57 | |
| 58 | 58 | if ($type2 == 'producer') { |
| 59 | 59 | if ($type == 'anime') { |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $_type; |
|
| 18 | + private $_type; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Search query. |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @return void |
| 43 | 43 | */ |
| 44 | - public function __construct($type, $query, $page, $parserArea = 'div[class^=js-categories-seasonal]') |
|
| 44 | + public function __construct($type, $query, $page, $parserArea = 'div[class^=js-categories-seasonal]') |
|
| 45 | 45 | { |
| 46 | 46 | $this->_type = $type; |
| 47 | - $this->_query = $query; |
|
| 47 | + $this->_query = $query; |
|
| 48 | 48 | $this->_page = 50 * ($page - 1); |
| 49 | 49 | |
| 50 | 50 | if ($type == 'anime') { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } else { |
| 53 | 53 | $this->_url = $this->_myAnimeListUrl.'/manga.php?q='.$query.'&show='.$this->_page; |
| 54 | 54 | } |
| 55 | - $this->_parserArea = $parserArea; |
|
| 55 | + $this->_parserArea = $parserArea; |
|
| 56 | 56 | |
| 57 | 57 | parent::errorCheck($this); |
| 58 | 58 | } |
@@ -33,12 +33,12 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | - public function __construct($query, $page, $parserArea = '#content') |
|
| 36 | + public function __construct($query, $page, $parserArea = '#content') |
|
| 37 | 37 | { |
| 38 | - $this->_query = $query; |
|
| 38 | + $this->_query = $query; |
|
| 39 | 39 | $this->_page = 24 * ($page - 1); |
| 40 | 40 | $this->_url = $this->_myAnimeListUrl.'/users.php?q='.$query.'&show='.$this->_page; |
| 41 | - $this->_parserArea = $parserArea; |
|
| 41 | + $this->_parserArea = $parserArea; |
|
| 42 | 42 | |
| 43 | 43 | parent::errorCheck($this); |
| 44 | 44 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $_type; |
|
| 18 | + private $_type; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Search query. |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @return void |
| 43 | 43 | */ |
| 44 | - public function __construct($type, $query, $page, $parserArea = '#content') |
|
| 44 | + public function __construct($type, $query, $page, $parserArea = '#content') |
|
| 45 | 45 | { |
| 46 | 46 | $this->_type = $type; |
| 47 | - $this->_query = $query; |
|
| 47 | + $this->_query = $query; |
|
| 48 | 48 | $this->_page = 50 * ($page - 1); |
| 49 | 49 | |
| 50 | 50 | if ($type == 'character') { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } else { |
| 53 | 53 | $this->_url = $this->_myAnimeListUrl.'/people.php?q='.$query.'&show='.$this->_page; |
| 54 | 54 | } |
| 55 | - $this->_parserArea = $parserArea; |
|
| 55 | + $this->_parserArea = $parserArea; |
|
| 56 | 56 | |
| 57 | 57 | parent::errorCheck($this); |
| 58 | 58 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @var string |
| 24 | 24 | */ |
| 25 | - private $_type; |
|
| 25 | + private $_type; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Page number |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @return void |
| 42 | 42 | */ |
| 43 | - public function __construct($supertype, $type, $page, $parserArea = '#content') |
|
| 43 | + public function __construct($supertype, $type, $page, $parserArea = '#content') |
|
| 44 | 44 | { |
| 45 | 45 | $this->_supertype = $supertype; |
| 46 | 46 | $this->_page = 50 * ($page - 1); |
@@ -193,11 +193,11 @@ discard block |
||
| 193 | 193 | return trim(str_replace('N/A', '', $score)); |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | - /** |
|
| 197 | - * Get result list. |
|
| 198 | - * |
|
| 199 | - * @return array |
|
| 200 | - */ |
|
| 196 | + /** |
|
| 197 | + * Get result list. |
|
| 198 | + * |
|
| 199 | + * @return array |
|
| 200 | + */ |
|
| 201 | 201 | private function getAllInfo() |
| 202 | 202 | { |
| 203 | 203 | $data = []; |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $_year; |
|
| 18 | + private $_year; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Season name. Either spring, summer, fall, or winter. |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | - public function __construct($year = false, $season = false, $parserArea = '#content .js-categories-seasonal') |
|
| 36 | + public function __construct($year = false, $season = false, $parserArea = '#content .js-categories-seasonal') |
|
| 37 | 37 | { |
| 38 | 38 | $this->_year = !$year ? date('Y') : $year; |
| 39 | - $this->_season = !$season ? Helper::getCurrentSeason() : $season; |
|
| 39 | + $this->_season = !$season ? Helper::getCurrentSeason() : $season; |
|
| 40 | 40 | $this->_url = $this->_myAnimeListUrl.'/anime/season/'.$this->_year.'/'.$this->_season; |
| 41 | - $this->_parserArea = $parserArea; |
|
| 41 | + $this->_parserArea = $parserArea; |
|
| 42 | 42 | |
| 43 | 43 | parent::errorCheck($this); |
| 44 | 44 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - private $_user; |
|
| 18 | + private $_user; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Default constructor. |
@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @return void |
| 27 | 27 | */ |
| 28 | - public function __construct($user, $parserArea = '#content') |
|
| 28 | + public function __construct($user, $parserArea = '#content') |
|
| 29 | 29 | { |
| 30 | - $this->_user = $user; |
|
| 30 | + $this->_user = $user; |
|
| 31 | 31 | $this->_url = $this->_myAnimeListUrl.'/profile/'.$user; |
| 32 | - $this->_parserArea = $parserArea; |
|
| 32 | + $this->_parserArea = $parserArea; |
|
| 33 | 33 | |
| 34 | 34 | parent::errorCheck($this); |
| 35 | 35 | } |