@@ -462,7 +462,7 @@ public function setErrorResponseIsData($errorResponseIsData = FALSE)
462462 *
463463 * @param bool $errorResponseIsNull TRUE if Response is Null if Error
464464 *
465- * @return mixed| $this
465+ * @return $this
466466 * @author: 713uk13m <[email protected] > 467467 * @time : 10/7/18 23:04
468468 *
@@ -519,10 +519,10 @@ public function setDigestAuthentication($username = '', $password = '')
519519 /**
520520 * Function getHttpCode
521521 *
522- * @return mixed
523- * @author: 713uk13m <[email protected] > 524- * @time : 10/7/18 23:16
525- *
522+ * @return int
523+ * @author : 713uk13m <[email protected] > 524+ * @copyright: 713uk13m <[email protected] > 525+ * @time : 08/01/2021 12:11
526526 */
527527 public function getHttpCode ()
528528 {
@@ -532,10 +532,10 @@ public function getHttpCode()
532532 /**
533533 * Function getHttpMessage
534534 *
535- * @return mixed
536- * @author: 713uk13m <[email protected] > 537- * @time : 10/7/18 23:16
538- *
535+ * @return string|null
536+ * @author : 713uk13m <[email protected] > 537+ * @copyright: 713uk13m <[email protected] > 538+ * @time : 08/01/2021 12:09
539539 */
540540 public function getHttpMessage ()
541541 {
@@ -545,10 +545,10 @@ public function getHttpMessage()
545545 /**
546546 * Function getErrorCode
547547 *
548- * @return mixed
549- * @author: 713uk13m <[email protected] > 550- * @time : 10/7/18 23:16
551- *
548+ * @return int
549+ * @author : 713uk13m <[email protected] > 550+ * @copyright: 713uk13m <[email protected] > 551+ * @time : 08/01/2021 12:06
552552 */
553553 public function getErrorCode ()
554554 {
@@ -558,10 +558,10 @@ public function getErrorCode()
558558 /**
559559 * Function getRequestsHeader
560560 *
561- * @return mixed
562- * @author: 713uk13m <[email protected] > 563- * @time : 10/7/18 23:16
564- *
561+ * @return array|null
562+ * @author : 713uk13m <[email protected] > 563+ * @copyright: 713uk13m <[email protected] > 564+ * @time : 08/01/2021 12:04
565565 */
566566 public function getRequestsHeader ()
567567 {
@@ -571,10 +571,10 @@ public function getRequestsHeader()
571571 /**
572572 * Function getResponseHeader
573573 *
574- * @return mixed
575- * @author: 713uk13m <[email protected] > 576- * @time : 10/7/18 23:16
577- *
574+ * @return array|null
575+ * @author : 713uk13m <[email protected] > 576+ * @copyright: 713uk13m <[email protected] > 577+ * @time : 08/01/2021 12:01
578578 */
579579 public function getResponseHeader ()
580580 {
@@ -589,7 +589,7 @@ public function getResponseHeader()
589589 * @param array $data Data Content to be Request
590590 * @param string $method Set Method to be Request
591591 *
592- * @return array|mixed| \Psr\Http\Message\ResponseInterface|\Psr\Http\Message\StreamInterface|string|null
592+ * @return array|\Psr\Http\Message\ResponseInterface|\Psr\Http\Message\StreamInterface|string|null
593593 *
594594 * @author : 713uk13m <[email protected] > 595595 * @copyright : 713uk13m <[email protected] > @@ -741,7 +741,7 @@ public function guzzlePhpRequest($url = '', $data = array(), $method = 'GET')
741741 * @author: 713uk13m <[email protected] > 742742 * @time : 10/7/18 05:54
743743 *
744- * @see https://packagist.org/packages/curl/ curl
744+ * @see https://packagist.org/packages/php- curl-class/php- curl-class
745745 */
746746 public function curlRequest ($ url = '' , $ data = array (), $ method = 'GET ' )
747747 {
@@ -840,7 +840,7 @@ public function curlRequest($url = '', $data = array(), $method = 'GET')
840840 $ this ->requests_header = isset ($ curl ->requestHeaders ) ? $ curl ->requestHeaders : (isset ($ curl ->request_headers )) ? $ curl ->request_headers : NULL ;
841841 $ this ->response_header = isset ($ curl ->responseHeaders ) ? $ curl ->responseHeaders : (isset ($ curl ->response_headers )) ? $ curl ->response_headers : NULL ;
842842 // Response
843- if (($ curl ->error )) {
843+ if (isset ($ curl ->error )) {
844844 // Debug
845845 $ this ->logger ->debug (__FUNCTION__ , 'Full Data Curl Message and Http Message: ' , $ error_code );
846846 if ($ this ->errorResponseIsData === TRUE ) {
0 commit comments