@@ -21,7 +21,7 @@ |
||
21 | 21 | * @param array|null $data |
22 | 22 | * @return array |
23 | 23 | */ |
24 | - public function format(string $errorCode = null, string $message = null, array $data = null): array |
|
24 | + public function format( string $errorCode = null, string $message = null, array $data = null ): array |
|
25 | 25 | { |
26 | 26 | return [ |
27 | 27 | 'error' => [ |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @param string $errorCode |
18 | 18 | * @return string|null |
19 | 19 | */ |
20 | - public function resolve(string $errorCode); |
|
20 | + public function resolve( string $errorCode ); |
|
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -19,5 +19,5 @@ |
||
19 | 19 | * @param array|null $data |
20 | 20 | * @return array |
21 | 21 | */ |
22 | - public function make(string $errorCode = null, string $message = null, array $data = null): array; |
|
22 | + public function make( string $errorCode = null, string $message = null, array $data = null ): array; |
|
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -20,5 +20,5 @@ |
||
20 | 20 | * @param string[] $without |
21 | 21 | * @return array |
22 | 22 | */ |
23 | - public function transform($data = null, $transformer = null, array $with = [], array $without = []): array; |
|
23 | + public function transform( $data = null, $transformer = null, array $with = [ ], array $without = [ ] ): array; |
|
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @param string|null $message |
22 | 22 | * @return \Flugg\Responder\Http\Responses\ErrorResponseBuilder |
23 | 23 | */ |
24 | - public function error(string $errorCode = null, string $message = null): ErrorResponseBuilder; |
|
24 | + public function error( string $errorCode = null, string $message = null ): ErrorResponseBuilder; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Build a successful response. |
@@ -31,5 +31,5 @@ discard block |
||
31 | 31 | * @param string|null $resourceKey |
32 | 32 | * @return \Flugg\Responder\Http\Responses\SuccessResponseBuilder |
33 | 33 | */ |
34 | - public function success($data = null, $transformer = null, string $resourceKey = null): SuccessResponseBuilder; |
|
34 | + public function success( $data = null, $transformer = null, string $resourceKey = null ): SuccessResponseBuilder; |
|
35 | 35 | } |
36 | 36 | \ No newline at end of file |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * @param array $headers |
22 | 22 | * @return \Illuminate\Http\JsonResponse |
23 | 23 | */ |
24 | - public function make(array $data, int $status, array $headers = []): JsonResponse; |
|
24 | + public function make( array $data, int $status, array $headers = [ ] ): JsonResponse; |
|
25 | 25 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator |
23 | 23 | * @return \League\Fractal\Pagination\PaginatorInterface |
24 | 24 | */ |
25 | - public function make(LengthAwarePaginator $paginator): PaginatorInterface; |
|
25 | + public function make( LengthAwarePaginator $paginator ): PaginatorInterface; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Make a Fractal paginator adapter from a Laravel paginator. |
@@ -30,5 +30,5 @@ discard block |
||
30 | 30 | * @param \Flugg\Responder\Pagination\CursorPaginator $paginator |
31 | 31 | * @return \League\Fractal\Pagination\Cursor |
32 | 32 | */ |
33 | - public function makeCursor(CursorPaginator $paginator): Cursor; |
|
33 | + public function makeCursor( CursorPaginator $paginator ): Cursor; |
|
34 | 34 | } |
35 | 35 | \ No newline at end of file |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * @param array $options |
23 | 23 | * @return array |
24 | 24 | */ |
25 | - public function make(ResourceInterface $resource, SerializerAbstract $serializer, array $options = []): array; |
|
25 | + public function make( ResourceInterface $resource, SerializerAbstract $serializer, array $options = [ ] ): array; |
|
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -19,5 +19,5 @@ |
||
19 | 19 | * @param array|null $data |
20 | 20 | * @return array |
21 | 21 | */ |
22 | - public function format(string $errorCode = null, string $message = null, array $data = null): array; |
|
22 | + public function format( string $errorCode = null, string $message = null, array $data = null ): array; |
|
23 | 23 | } |
24 | 24 | \ No newline at end of file |