Skip to content

Commit

Permalink
style: format code with PHP CS Fixer
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 7569d9c according to the output
from PHP CS Fixer.

Details: #280
  • Loading branch information
deepsource-autofix[bot] authored Dec 11, 2024
1 parent 7569d9c commit 6510d26
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace GuiBranco\Pancake;

class Response {
public static function success($data, $message = 'Success') {
class Response
{
public static function success($data, $message = 'Success')

Check warning

Code scanning / Phpcs (reported by Codacy)

Missing doc comment for function success() Warning

Missing doc comment for function success()

Check warning

Code scanning / Phpcs (reported by Codacy)

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

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

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected 2 blank lines before function; 0 found Warning

Expected 2 blank lines before function; 0 found

Check warning

Code scanning / Phpcs (reported by Codacy)

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

Incorrect spacing between argument "$message" and equals sign; expected 0 but found 1
{
return [
'status' => 'success',

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12

Check warning

Code scanning / Phpcs (reported by Codacy)

Array double arrow not aligned correctly; expected 2 spaces but found 1 Warning

Array double arrow not aligned correctly; expected 2 spaces but found 1
'message' => $message,

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12
'data' => $data

Check warning

Code scanning / Phpcs (reported by Codacy)

Array double arrow not aligned correctly; expected 4 spaces but found 1 Warning

Array double arrow not aligned correctly; expected 4 spaces but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12
];

Check warning

Code scanning / Phpcs (reported by Codacy)

Closing parenthesis not aligned correctly; expected 15 spaces but found 8 Warning

Closing parenthesis not aligned correctly; expected 15 spaces but found 8
}

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected 2 blank lines after function; 1 found Warning

Expected 2 blank lines after function; 1 found

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected //end getUrl() Warning

Expected //end getUrl()

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected 1 blank line before closing function brace; 0 found Warning

Expected 1 blank line before closing function brace; 0 found

public static function error($code, $message, $details = []) {
public static function error($code, $message, $details = [])

Check warning

Code scanning / Phpcs (reported by Codacy)

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

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

Check warning

Code scanning / Phpcs (reported by Codacy)

Missing doc comment for function error() Warning

Missing doc comment for function error()

Check warning

Code scanning / Phpcs (reported by Codacy)

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

Incorrect spacing between argument "$details" and equals sign; expected 0 but found 1
{
return [
'status' => 'error',

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12

Check warning

Code scanning / Phpcs (reported by Codacy)

Array double arrow not aligned correctly; expected 2 spaces but found 1 Warning

Array double arrow not aligned correctly; expected 2 spaces but found 1
'code' => $code,

Check warning

Code scanning / Phpcs (reported by Codacy)

Array double arrow not aligned correctly; expected 4 spaces but found 1 Warning

Array double arrow not aligned correctly; expected 4 spaces but found 1

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12
'message' => $message,

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12
'details' => $details

Check warning

Code scanning / Phpcs (reported by Codacy)

Each line in an array declaration must end in a comma Warning

Each line in an array declaration must end in a comma

Check warning

Code scanning / Phpcs (reported by Codacy)

Array key not aligned correctly; expected 16 spaces but found 12 Warning

Array key not aligned correctly; expected 16 spaces but found 12
];

Check warning

Code scanning / Phpcs (reported by Codacy)

Closing parenthesis not aligned correctly; expected 15 spaces but found 8 Warning

Closing parenthesis not aligned correctly; expected 15 spaces but found 8
}

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected 1 blank line before closing function brace; 0 found Warning

Expected 1 blank line before closing function brace; 0 found

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected //end toJson() Warning

Expected //end toJson()

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected 2 blank lines after function; 1 found Warning

Expected 2 blank lines after function; 1 found
}
}

Check warning

Code scanning / Phpcs (reported by Codacy)

Expected //end getBodyAsArray() Warning

Expected //end getBodyAsArray()

0 comments on commit 6510d26

Please sign in to comment.