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 09e8e92 commit 232adfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function delete($url, $options = []) {
return Response::success(['data' => 'Sample data'], 'Request successful');
}


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

Check warning

Code scanning / Phpcs (reported by Codacy)

Incorrect spacing between argument "$data" and equals sign; expected 0 but found 1 Warning

Incorrect spacing between argument "$data" and equals sign; expected 0 but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Incorrect spacing between default value and equals sign for argument "$options"; expected 0 but found 1 Warning

Incorrect spacing between default value and equals sign for argument "$options"; expected 0 but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Incorrect spacing between argument "$options" and equals sign; expected 0 but found 1 Warning

Incorrect spacing between argument "$options" and equals sign; expected 0 but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Missing doc comment for function post() Warning

Missing doc comment for function post()

Check warning

Code scanning / Phpcs (reported by Codacy)

Incorrect spacing between default value and equals sign for argument "$data"; expected 0 but found 1 Warning

Incorrect spacing between default value and equals sign for argument "$data"; expected 0 but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Opening brace should be on a new line Warning

Opening brace should be on a new line

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

0 comments on commit 232adfe

Please sign in to comment.