@@ -161,7 +161,7 @@ |
||
| 161 | 161 | $result['status_message'] = self::toResponse($response); |
| 162 | 162 | $result['data'] = []; |
| 163 | 163 | } else { |
| 164 | - header('HTTP/1.1 '. 200); |
|
| 164 | + header('HTTP/1.1 '.200); |
|
| 165 | 165 | $result['status'] = 200; |
| 166 | 166 | $result['status_message'] = 'Success'; |
| 167 | 167 | $result['data'] = self::superEncode($response); |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | $result['status_message'] = self::toResponse($response); |
| 162 | 162 | $result['data'] = []; |
| 163 | 163 | } else { |
| 164 | - header('HTTP/1.1 '. 200); |
|
| 164 | + header('HTTP/1.1 '.200); |
|
| 165 | 165 | $result['status'] = 200; |
| 166 | 166 | $result['status_message'] = 'Success'; |
| 167 | 167 | $result['data'] = self::superEncode($response); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @return string |
| 94 | 94 | */ |
| 95 | - private function getName($isKanji=false) |
|
| 95 | + private function getName($isKanji = false) |
|
| 96 | 96 | { |
| 97 | 97 | $html = $this->_parser->find('#content table tr', 0); |
| 98 | 98 | $html = $html->find('td', 0)->next_sibling()->find('div[class=normal_header]', 0); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @return array |
| 153 | 153 | */ |
| 154 | - private function getMedia($type='anime') |
|
| 154 | + private function getMedia($type = 'anime') |
|
| 155 | 155 | { |
| 156 | 156 | $mediaography = []; |
| 157 | 157 | $mediaography_index = 0; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @return \simplehtmldom_1_5\simple_html_dom |
| 75 | 75 | */ |
| 76 | - static function getParser($url,$contentDiv, $additionalSetting = false) |
|
| 76 | + static function getParser($url, $contentDiv, $additionalSetting = false) |
|
| 77 | 77 | { |
| 78 | 78 | $html = HtmlDomParser::file_get_html($url)->find($contentDiv, 0); |
| 79 | 79 | $html = !$additionalSetting ? $html : $html->next_sibling(); |
@@ -153,6 +153,6 @@ discard block |
||
| 153 | 153 | { |
| 154 | 154 | $className = get_class($model); |
| 155 | 155 | $className = explode('\\', $className); |
| 156 | - return $className[count($className)-1]; |
|
| 156 | + return $className[count($className) - 1]; |
|
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | \ No newline at end of file |
@@ -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 | } |