diff --git a/src/Response.php b/src/Response.php index edf5d93c9..7dfadd6e9 100644 --- a/src/Response.php +++ b/src/Response.php @@ -2,8 +2,10 @@ namespace GuiBranco\Pancake; -class Response { - public static function success($data, $message = 'Success') { +class Response +{ + public static function success($data, $message = 'Success') + { return [ 'status' => 'success', 'message' => $message, @@ -11,7 +13,8 @@ public static function success($data, $message = 'Success') { ]; } - public static function error($code, $message, $details = []) { + public static function error($code, $message, $details = []) + { return [ 'status' => 'error', 'code' => $code, @@ -19,4 +22,4 @@ public static function error($code, $message, $details = []) { 'details' => $details ]; } -} \ No newline at end of file +}