Skip to content

Commit 8fe0678

Browse files
author
manojkumarlinux
committed
Request and response changes
1 parent ad0ab88 commit 8fe0678

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Lib/Request.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Request {
66

77
public static $code = [
8-
'0' => 'Config issues.'
8+
'0' => 'Config issues.',
99

1010
'200' => 'Success.',
1111

@@ -45,8 +45,8 @@ public static function curlRequest(array $data) {
4545
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
4646
curl_close($ch);
4747

48-
$httpcode = isset(self::$responses[$httpcode]) ? $httpcode ? 0;
48+
$httpcode = isset(self::$responses[$httpcode]) ? $httpcode : 0;
4949

50-
return [ 'response' => ? self::$responses[$httpcode], 'code' => $httpcode];
50+
return [ 'response' => self::$code[$httpcode], 'code' => $httpcode];
5151
}
5252
}

0 commit comments

Comments
 (0)