Skip to content

Commit 75b6054

Browse files
committed
Scrutinizer fixes, updated the HttpRequest interface, fixed more PHPDoc
1 parent 551bc7b commit 75b6054

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/Kobas/APIClient/Request/Curl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class Curl implements HttpRequest
1111
{
1212
/**
13-
* @var null|false|resource
13+
* @var null|resource
1414
*/
1515
private $handle = null;
1616

@@ -48,7 +48,7 @@ public function setOption($name, $value)
4848

4949

5050
/**
51-
* @return false| resource
51+
* @return null|resource
5252
*/
5353
public function getHandle()
5454
{
@@ -81,15 +81,15 @@ public function getAllInfo()
8181
}
8282

8383
/**
84-
* @return int|mixed
84+
* @return int
8585
*/
8686
public function getErrorNumber()
8787
{
8888
return curl_errno($this->handle);
8989
}
9090

9191
/**
92-
* @return mixed|string
92+
* @return string
9393
*/
9494
public function getErrorMessage()
9595
{

src/Kobas/APIClient/Request/HttpRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public function execute();
3838
public function getInfo($name);
3939

4040

41+
/**
42+
* @return array|false
43+
*/
44+
public function getAllInfo();
45+
46+
4147
/**
4248
* @return mixed
4349
*/

0 commit comments

Comments
 (0)