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

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

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

Check warning

Code scanning / Phpcs (reported by Codacy)

Closing brace indented incorrectly; expected 0 spaces, found 4 Warning

Closing brace indented incorrectly; expected 0 spaces, found 4
return Response::error(400, 'Bad Request', ['error' => 'Invalid data']);
}
private function getFields($url, $headers): array

Check warning

Code scanning / Phpcs (reported by Codacy)

Line indented incorrectly; expected 0 spaces, found 4 Warning

Line indented incorrectly; expected 0 spaces, found 4
{
return array(
Expand Down

0 comments on commit 09e8e92

Please sign in to comment.