@@ -163,7 +163,7 @@ |
||
| 163 | 163 | /** |
| 164 | 164 | * Checks if the HTTP method being used is correct. |
| 165 | 165 | * |
| 166 | - * @param $http_method |
|
| 166 | + * @param string $http_method |
|
| 167 | 167 | * |
| 168 | 168 | * @return bool |
| 169 | 169 | */ |
@@ -242,8 +242,7 @@ |
||
| 242 | 242 | if ($this->validMethod($method)) { |
| 243 | 243 | array_unshift($args, $method); |
| 244 | 244 | return call_user_func_array(array($this, 'makeRequest'), $args); |
| 245 | - } |
|
| 246 | - else { |
|
| 245 | + } else { |
|
| 247 | 246 | throw new \BadMethodCallException('Method not found in class.'); |
| 248 | 247 | } |
| 249 | 248 | } |