@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | * |
| 323 | 323 | * @return array |
| 324 | 324 | */ |
| 325 | - private function searchAnime($query, $page=1) |
|
| 325 | + private function searchAnime($query, $page = 1) |
|
| 326 | 326 | { |
| 327 | 327 | return (new searchAnimeManga('anime', $query, $page))->getAllInfo(); |
| 328 | 328 | } |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | * |
| 336 | 336 | * @return array |
| 337 | 337 | */ |
| 338 | - private function searchManga($query, $page=1) |
|
| 338 | + private function searchManga($query, $page = 1) |
|
| 339 | 339 | { |
| 340 | 340 | return (new searchAnimeManga('manga', $query, $page))->getAllInfo(); |
| 341 | 341 | } |
@@ -53,8 +53,9 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function __call($method, $arguments) |
| 55 | 55 | { |
| 56 | - if ($this->_error) |
|
| 57 | - return $this->_error; |
|
| 56 | + if ($this->_error) { |
|
| 57 | + return $this->_error; |
|
| 58 | + } |
|
| 58 | 59 | return call_user_func_array([$this, $method], $arguments); |
| 59 | 60 | } |
| 60 | 61 | |
@@ -118,8 +119,9 @@ discard block |
||
| 118 | 119 | } |
| 119 | 120 | |
| 120 | 121 | $char_table = $char_table->next_sibling(); |
| 121 | - if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div') |
|
| 122 | - break; |
|
| 122 | + if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div') { |
|
| 123 | + break; |
|
| 124 | + } |
|
| 123 | 125 | $character_index++; |
| 124 | 126 | } |
| 125 | 127 | } |
@@ -250,8 +252,9 @@ discard block |
||
| 250 | 252 | $staff[$staff_index]['role'] = $this->getCharacterRole($staff_name_area); |
| 251 | 253 | |
| 252 | 254 | $staff_table = $staff_table->next_sibling(); |
| 253 | - if (!$staff_table) |
|
| 254 | - break; |
|
| 255 | + if (!$staff_table) { |
|
| 256 | + break; |
|
| 257 | + } |
|
| 255 | 258 | $staff_index++; |
| 256 | 259 | } |
| 257 | 260 | } |