We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0ab88 commit 8fe0678Copy full SHA for 8fe0678
src/Lib/Request.php
@@ -5,7 +5,7 @@
5
class Request {
6
7
public static $code = [
8
- '0' => 'Config issues.'
+ '0' => 'Config issues.',
9
10
'200' => 'Success.',
11
@@ -45,8 +45,8 @@ public static function curlRequest(array $data) {
45
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
46
curl_close($ch);
47
48
- $httpcode = isset(self::$responses[$httpcode]) ? $httpcode ? 0;
+ $httpcode = isset(self::$responses[$httpcode]) ? $httpcode : 0;
49
50
- return [ 'response' => ? self::$responses[$httpcode], 'code' => $httpcode];
+ return [ 'response' => self::$code[$httpcode], 'code' => $httpcode];
51
}
52
0 commit comments