Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

16 files changed

+43
-43
lines changed

16 files changed

+43
-43
lines changed

src/Client.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public function getCookies()
434434
* Get the cookie Id (name+domain+path)
435435
*
436436
* @param Header\SetCookie|Header\Cookie $cookie
437-
* @return string|boolean
437+
* @return string|bool
438438
*/
439439
protected function getCookieId($cookie)
440440
{
@@ -452,8 +452,8 @@ protected function getCookieId($cookie)
452452
* @param string $expire
453453
* @param string $path
454454
* @param string $domain
455-
* @param boolean $secure
456-
* @param boolean $httponly
455+
* @param bool $secure
456+
* @param bool $httponly
457457
* @param string $maxAge
458458
* @param string $version
459459
* @throws Exception\InvalidArgumentException
@@ -533,7 +533,7 @@ public function setHeaders($headers)
533533
* Check if exists the header type specified
534534
*
535535
* @param string $name
536-
* @return boolean
536+
* @return bool
537537
*/
538538
public function hasHeader($name)
539539
{
@@ -550,7 +550,7 @@ public function hasHeader($name)
550550
* Get the header value of the request
551551
*
552552
* @param string $name
553-
* @return string|boolean
553+
* @return string|bool
554554
*/
555555
public function getHeader($name)
556556
{
@@ -567,7 +567,7 @@ public function getHeader($name)
567567
/**
568568
* Set streaming for received data
569569
*
570-
* @param string|boolean $streamfile Stream file, true for temp file, false/null for no streaming
570+
* @param string|bool $streamfile Stream file, true for temp file, false/null for no streaming
571571
* @return \Zend\Http\Client
572572
*/
573573
public function setStream($streamfile = true)
@@ -578,7 +578,7 @@ public function setStream($streamfile = true)
578578

579579
/**
580580
* Get status of streaming for received data
581-
* @return boolean|string
581+
* @return bool|string
582582
*/
583583
public function getStream()
584584
{
@@ -659,7 +659,7 @@ public function setAuth($user, $password, $type = self::AUTH_BASIC)
659659
* @param array $digest
660660
* @param null|string $entityBody
661661
* @throws Exception\InvalidArgumentException
662-
* @return string|boolean
662+
* @return string|bool
663663
*/
664664
protected function calcAuthDigest($user, $password, $type = self::AUTH_BASIC, $digest = array(), $entityBody = null)
665665
{
@@ -963,7 +963,7 @@ public function setFileUpload($filename, $formname, $data = null, $ctype = null)
963963
* Remove a file to upload
964964
*
965965
* @param string $filename
966-
* @return boolean
966+
* @return bool
967967
*/
968968
public function removeFileUpload($filename)
969969
{
@@ -981,7 +981,7 @@ public function removeFileUpload($filename)
981981
* @param string $domain
982982
* @param string $path
983983
* @param boolean $secure
984-
* @return Header\Cookie|boolean
984+
* @return Header\Cookie|bool
985985
*/
986986
protected function prepareCookies($domain, $path, $secure)
987987
{
@@ -1275,7 +1275,7 @@ protected function flattenParametersArray($parray, $prefix = null)
12751275
*
12761276
* @param Http $uri
12771277
* @param string $method
1278-
* @param boolean $secure
1278+
* @param bool $secure
12791279
* @param array $headers
12801280
* @param string $body
12811281
* @return string the raw response

src/Client/Adapter/AdapterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function setOptions($options = array());
3434
*
3535
* @param string $host
3636
* @param int $port
37-
* @param boolean $secure
37+
* @param bool $secure
3838
*/
3939
public function connect($host, $port = 80, $secure = false);
4040

src/Client/Adapter/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function setCurlOption($option, $value)
178178
*
179179
* @param string $host
180180
* @param int $port
181-
* @param boolean $secure
181+
* @param bool $secure
182182
* @return void
183183
* @throws AdapterException\RuntimeException if unable to connect
184184
*/

src/Client/Adapter/Proxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Proxy extends Socket
5454
/**
5555
* Whether HTTPS CONNECT was already negotiated with the proxy or not
5656
*
57-
* @var boolean
57+
* @var bool
5858
*/
5959
protected $negotiated = false;
6060

@@ -84,7 +84,7 @@ public function setOptions($options = array())
8484
*
8585
* @param string $host
8686
* @param int $port
87-
* @param boolean $secure
87+
* @param bool $secure
8888
* @throws AdapterException\RuntimeException
8989
*/
9090
public function connect($host, $port = 80, $secure = false)

src/Client/Adapter/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function getStreamContext()
183183
*
184184
* @param string $host
185185
* @param int $port
186-
* @param boolean $secure
186+
* @param bool $secure
187187
* @throws AdapterException\RuntimeException
188188
*/
189189
public function connect($host, $port = 80, $secure = false)

src/Client/Adapter/Test.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Test implements AdapterInterface
5353
/**
5454
* Whether or not the next request will fail with an exception
5555
*
56-
* @var boolean
56+
* @var bool
5757
*/
5858
protected $nextRequestWillFail = false;
5959

@@ -66,7 +66,7 @@ public function __construct()
6666
/**
6767
* Set the nextRequestWillFail flag
6868
*
69-
* @param boolean $flag
69+
* @param bool $flag
7070
* @return \Zend\Http\Client\Adapter\Test
7171
*/
7272
public function setNextRequestWillFail($flag)
@@ -105,7 +105,7 @@ public function setOptions($options = array())
105105
*
106106
* @param string $host
107107
* @param int $port
108-
* @param boolean $secure
108+
* @param bool $secure
109109
* @param int $timeout
110110
* @throws Exception\RuntimeException
111111
*/

src/Client/Cookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function getAllCookies($ret_as = self::COOKIE_OBJECT)
156156
* checking cookie expiry time.
157157
*
158158
* @param string|Uri\Uri $uri URI to check against (secure, domain, path)
159-
* @param boolean $matchSessionCookies Whether to send session cookies
159+
* @param bool $matchSessionCookies Whether to send session cookies
160160
* @param int $ret_as Whether to return cookies as objects of \Zend\Http\Header\Cookie or as strings
161161
* @param int $now Override the current time when checking for expiry time
162162
* @throws Exception\InvalidArgumentException if invalid URI
@@ -393,7 +393,7 @@ public function reset()
393393
* @param mixed $offset <p>
394394
* An offset to check for.
395395
* </p>
396-
* @return boolean Returns true on success or false on failure.
396+
* @return bool Returns true on success or false on failure.
397397
* </p>
398398
* <p>
399399
* The return value will be casted to boolean if non-boolean was returned.

src/ClientStatic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected static function getStaticClient()
4343
* @param array $query
4444
* @param array $headers
4545
* @param mixed $body
46-
* @return Response|boolean
46+
* @return Response|bool
4747
*/
4848
public static function get($url, $query = array(), $headers = array(), $body = null)
4949
{
@@ -78,7 +78,7 @@ public static function get($url, $query = array(), $headers = array(), $body = n
7878
* @param array $headers
7979
* @param mixed $body
8080
* @throws Exception\InvalidArgumentException
81-
* @return Response|boolean
81+
* @return Response|bool
8282
*/
8383
public static function post($url, $params, $headers = array(), $body = null)
8484
{

src/Cookies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function getAllCookies($ret_as = self::COOKIE_OBJECT)
133133
* checking cookie expiry time.
134134
*
135135
* @param string|Uri\Uri $uri URI to check against (secure, domain, path)
136-
* @param boolean $matchSessionCookies Whether to send session cookies
136+
* @param bool $matchSessionCookies Whether to send session cookies
137137
* @param int $ret_as Whether to return cookies as objects of \Zend\Http\Header\Cookie or as strings
138138
* @param int $now Override the current time when checking for expiry time
139139
* @throws Exception\InvalidArgumentException if invalid URI specified

src/Header/AbstractAccept.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ protected function hasType($matchAgainst)
293293
* Match a media string against this header
294294
*
295295
* @param array|string $matchAgainst
296-
* @return AcceptFieldValuePart|boolean The matched value or false
296+
* @return AcceptFieldValuePart|bool The matched value or false
297297
*/
298298
public function match($matchAgainst)
299299
{
@@ -337,7 +337,7 @@ public function match($matchAgainst)
337337
*
338338
* @param array $match1
339339
* @param array $match2
340-
* @return boolean|array
340+
* @return bool|array
341341
*/
342342
protected function matchAcceptParams($match1, $match2)
343343
{

0 commit comments

Comments
 (0)