@@ -193,8 +193,10 @@ |
||
| 193 | 193 | if ($day >= $spring_starts && $day <= $spring_ends) : |
| 194 | 194 | $season = 'spring'; elseif ($day >= $summer_starts && $day <= $summer_ends) : |
| 195 | 195 | $season = 'summer'; elseif ($day >= $autumn_starts && $day <= $autumn_ends) : |
| 196 | - $season = 'fall'; else : |
|
| 196 | + $season = 'fall'; else { |
|
| 197 | + : |
|
| 197 | 198 | $season = 'winter'; |
| 199 | + } |
|
| 198 | 200 | endif; |
| 199 | 201 | |
| 200 | 202 | return $season; |
@@ -123,8 +123,9 @@ |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | // if to api function enabled |
| 126 | - if ($this->_to_api === true) |
|
| 127 | - return Helper::response($result); |
|
| 126 | + if ($this->_to_api === true) { |
|
| 127 | + return Helper::response($result); |
|
| 128 | + } |
|
| 128 | 129 | return Helper::toResponse($result); |
| 129 | 130 | } |
| 130 | 131 | |
@@ -52,8 +52,9 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function __call($method, $arguments) |
| 54 | 54 | { |
| 55 | - if ($this->_error) |
|
| 56 | - return $this->_error; |
|
| 55 | + if ($this->_error) { |
|
| 56 | + return $this->_error; |
|
| 57 | + } |
|
| 57 | 58 | return call_user_func_array([$this, $method], $arguments); |
| 58 | 59 | } |
| 59 | 60 | |
@@ -117,8 +118,9 @@ discard block |
||
| 117 | 118 | } |
| 118 | 119 | |
| 119 | 120 | $char_table = $char_table->next_sibling(); |
| 120 | - if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div') |
|
| 121 | - break; |
|
| 121 | + if ($char_table->tag == 'br' || $char_table->tag == 'a' || $char_table->tag == 'h2' || $char_table->tag == 'div') { |
|
| 122 | + break; |
|
| 123 | + } |
|
| 122 | 124 | $character_index++; |
| 123 | 125 | } |
| 124 | 126 | } |
@@ -249,8 +251,9 @@ discard block |
||
| 249 | 251 | $staff[$staff_index]['role'] = self::getStaffRole($staff_name_area); |
| 250 | 252 | |
| 251 | 253 | $staff_table = $staff_table->next_sibling(); |
| 252 | - if (!$staff_table) |
|
| 253 | - break; |
|
| 254 | + if (!$staff_table) { |
|
| 255 | + break; |
|
| 256 | + } |
|
| 254 | 257 | $staff_index++; |
| 255 | 258 | } |
| 256 | 259 | } |
@@ -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 | } |
| 145 | 146 | \ No newline at end of file |
@@ -52,8 +52,9 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function __call($method, $arguments) |
| 54 | 54 | { |
| 55 | - if ($this->_error) |
|
| 56 | - return $this->_error; |
|
| 55 | + if ($this->_error) { |
|
| 56 | + return $this->_error; |
|
| 57 | + } |
|
| 57 | 58 | return call_user_func_array([$this, $method], $arguments); |
| 58 | 59 | } |
| 59 | 60 | |
@@ -51,8 +51,9 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function __call($method, $arguments) |
| 53 | 53 | { |
| 54 | - if ($this->_error) |
|
| 55 | - return $this->_error; |
|
| 54 | + if ($this->_error) { |
|
| 55 | + return $this->_error; |
|
| 56 | + } |
|
| 56 | 57 | return call_user_func_array([$this, $method], $arguments); |
| 57 | 58 | } |
| 58 | 59 | |
@@ -43,8 +43,9 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function __call($method, $arguments) |
| 45 | 45 | { |
| 46 | - if ($this->_error) |
|
| 47 | - return $this->_error; |
|
| 46 | + if ($this->_error) { |
|
| 47 | + return $this->_error; |
|
| 48 | + } |
|
| 48 | 49 | return call_user_func_array([$this, $method], $arguments); |
| 49 | 50 | } |
| 50 | 51 | |
@@ -52,8 +52,9 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function __call($method, $arguments) |
| 54 | 54 | { |
| 55 | - if ($this->_error) |
|
| 56 | - return $this->_error; |
|
| 55 | + if ($this->_error) { |
|
| 56 | + return $this->_error; |
|
| 57 | + } |
|
| 57 | 58 | return call_user_func_array([$this, $method], $arguments); |
| 58 | 59 | } |
| 59 | 60 | |
@@ -43,8 +43,9 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function __call($method, $arguments) |
| 45 | 45 | { |
| 46 | - if ($this->_error) |
|
| 47 | - return $this->_error; |
|
| 46 | + if ($this->_error) { |
|
| 47 | + return $this->_error; |
|
| 48 | + } |
|
| 48 | 49 | return call_user_func_array([$this, $method], $arguments); |
| 49 | 50 | } |
| 50 | 51 | |