Skip to content

Commit

Permalink
Update src/Request.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Dec 11, 2024
1 parent 97b4c73 commit c98ef1a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ public function get($url, $options = []) {
public function post($url, $data = [], $options = []) {

return Response::error(400, 'Bad Request', ['error' => 'Invalid data']);
}



public function delete($url, $options = []) {

Check notice on line 21 in src/Request.php

View check run for this annotation

codefactor.io / CodeFactor

src/Request.php#L21

Code after the RETURN statement on line 17 cannot be executed. (Squiz.PHP.NonExecutableCode)

return Response::success(null, 'Resource deleted');
}
}
}
$header = substr($response, 0, $headerSize);
$headers = $this->extractHeaders($header);

Check notice on line 26 in src/Request.php

View check run for this annotation

codefactor.io / CodeFactor

src/Request.php#L26

Code after the RETURN statement on line 12 cannot be executed. (Squiz.PHP.NonExecutableCode)
$body = substr($response, $headerSize);
Expand Down

0 comments on commit c98ef1a

Please sign in to comment.