src/Pelecard/PelecardHttpRequest.php
Call to method post
from undeclared class \GuzzleHttp\Client
Open
Open
$response = $client->post($uri, ['json' => $data]);
- Exclude checks
Call to method __construct
from undeclared class \GuzzleHttp\Client
Open
Open
$client = new Client(self::getConfig());
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class PelecardHttpRequest {
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
]
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
const REQUEST_TIMEOUT = 10;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
const GATEWAY_BASE_URI = 'https://gateway20.pelecard.biz';
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function pelecardPostRequest($uri, $data) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$response = $client->post($uri, ['json' => $data]);
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
Open
(is_array(self::$clientConfig)) ? self::$clientConfig : [], // user config
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
(is_array(self::$clientConfig)) ? self::$clientConfig : [], // user config
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
const CONNECTION_TIMEOUT = 5;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
[
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
Open
],
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return array_merge(
- Exclude checks
Opening brace should be on a new line Open
Open
public static function pelecardPostRequest($uri, $data) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static $clientConfig;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
],
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
Open
[
- Exclude checks
Expected 1 newline at end of file; 0 found Open
Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
Open
[
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 6 Open
Open
]
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$client = new Client(self::getConfig());
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return $response->getBody()->getContents();
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function getConfig() {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
[
- Exclude checks
Opening brace should be on a new line Open
Open
public static function getConfig() {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
);
- Exclude checks