Showing 6 of 6 total issues
Method sendWithCurl
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function sendWithCurl($url, $payload) { $response = new \stdClass; $curl = curl_init($url); curl_setopt($curl, CURLOPT_HEADER, true);
Method send
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function send(Entity\JsonFile $json) { $response = new \stdClass; $payload = (string)$json; $options = array(
Missing class import via use statement (line '32', column '25'). Open
$response = new \stdClass;
- Read upRead up
- Exclude checks
Missing class import via use statement (line '76', column '25'). Open
$response = new \stdClass;
- Read upRead up
- Exclude checks
Remove error control operator '@' on line 50. Open
public function send(Entity\JsonFile $json) { $response = new \stdClass; $payload = (string)$json; $options = array(
- Read upRead up
- Exclude checks
Avoid assigning values to variables in if clauses and the like (line '50', column '13'). Open
public function send(Entity\JsonFile $json) { $response = new \stdClass; $payload = (string)$json; $options = array(
- Read upRead up
- Exclude checks