@@ -64,8 +64,9 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function __call($method, $arguments) |
| 66 | 66 | { |
| 67 | - if ($this->_error) |
|
| 68 | - return $this->_error; |
|
| 67 | + if ($this->_error) { |
|
| 68 | + return $this->_error; |
|
| 69 | + } |
|
| 69 | 70 | return call_user_func_array([$this, $method], $arguments); |
| 70 | 71 | } |
| 71 | 72 | |
@@ -141,8 +142,9 @@ discard block |
||
| 141 | 142 | { |
| 142 | 143 | $prod_id = $each_producer->href; |
| 143 | 144 | $prod_id = explode('/', $prod_id); |
| 144 | - if ($this->_type == 'anime') |
|
| 145 | - return $prod_id[3]; |
|
| 145 | + if ($this->_type == 'anime') { |
|
| 146 | + return $prod_id[3]; |
|
| 147 | + } |
|
| 146 | 148 | return $prod_id[4]; |
| 147 | 149 | } |
| 148 | 150 | |
@@ -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 |
@@ -137,8 +137,9 @@ |
||
| 137 | 137 | |
| 138 | 138 | $html = HtmlDomParser::file_get_html($model->_url)->find($area, 0)->href; |
| 139 | 139 | |
| 140 | - if ($model->getType() == 'manga') |
|
| 141 | - return 'https://myanimelist.net'.$html.$additionalUrl; |
|
| 140 | + if ($model->getType() == 'manga') { |
|
| 141 | + return 'https://myanimelist.net'.$html.$additionalUrl; |
|
| 142 | + } |
|
| 142 | 143 | return $html.$additionalUrl; |
| 143 | 144 | } |
| 144 | 145 | |