@@ -89,8 +89,8 @@ |
||
| 89 | 89 | * Make a post request to the given endpoint |
| 90 | 90 | * |
| 91 | 91 | * @access public |
| 92 | - * @param string $path |
|
| 93 | 92 | * @param array $parameters |
| 93 | + * @param string $endpoint |
|
| 94 | 94 | * @return Response |
| 95 | 95 | */ |
| 96 | 96 | public function post( $endpoint, array $parameters = array() ) |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @access public |
| 54 | 54 | * @param string $option |
| 55 | - * @param mixed $value |
|
| 55 | + * @param false|string $value |
|
| 56 | 56 | * @return $this |
| 57 | 57 | */ |
| 58 | 58 | public function setOption( $option, $value ) |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * Execute the curl request |
| 81 | 81 | * |
| 82 | 82 | * @access public |
| 83 | - * @return mixed |
|
| 83 | + * @return false|string |
|
| 84 | 84 | */ |
| 85 | 85 | public function execute() |
| 86 | 86 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * Check if the curl request ended up with errors |
| 92 | 92 | * |
| 93 | 93 | * @access public |
| 94 | - * @return boolean |
|
| 94 | + * @return integer |
|
| 95 | 95 | */ |
| 96 | 96 | public function hasErrors() |
| 97 | 97 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * Parse string headers into array |
| 159 | 159 | * |
| 160 | 160 | * @access private |
| 161 | - * @param array $headers |
|
| 161 | + * @param string $headers |
|
| 162 | 162 | * @return array |
| 163 | 163 | */ |
| 164 | 164 | private function parseHeaders($headers) { |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * |
| 181 | 181 | * @see http://slopjong.de/2012/03/31/curl-follow-locations-with-safe_mode-enabled-or-open_basedir-set/ |
| 182 | 182 | * @access private |
| 183 | - * @return mixed |
|
| 183 | + * @return false|string |
|
| 184 | 184 | */ |
| 185 | 185 | private function execFollow() { |
| 186 | 186 | $mr = 5; |