@@ -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,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 |
@@ -21,5 +21,5 @@ |
||
| 21 | 21 | * @param string|null $resourceKey |
| 22 | 22 | * @return \League\Fractal\Resource\ResourceInterface |
| 23 | 23 | */ |
| 24 | - public function make($data = null, $transformer = null, string $resourceKey = null): ResourceInterface; |
|
| 24 | + public function make( $data = null, $transformer = null, string $resourceKey = null ): ResourceInterface; |
|
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * @param string|callback $transformer |
| 19 | 19 | * @return void |
| 20 | 20 | */ |
| 21 | - public function bind($transformable, $transformer); |
|
| 21 | + public function bind( $transformable, $transformer ); |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Resolve a transformer. |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @return \Flugg\Responder\Transformers\Transformer|callable |
| 28 | 28 | * @throws \Flugg\Responder\Exceptions\InvalidTransformerException |
| 29 | 29 | */ |
| 30 | - public function resolve($transformer); |
|
| 30 | + public function resolve( $transformer ); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Resolve a transformer from the given data. |
@@ -35,5 +35,5 @@ discard block |
||
| 35 | 35 | * @param mixed $data |
| 36 | 36 | * @return \Flugg\Responder\Transformers\Transformer|callable|null |
| 37 | 37 | */ |
| 38 | - public function resolveFromData($data); |
|
| 38 | + public function resolveFromData( $data ); |
|
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @param \Illuminate\Contracts\Routing\ResponseFactory $factory |
| 29 | 29 | */ |
| 30 | - public function __construct(BaseLaravelResponseFactory $factory) |
|
| 30 | + public function __construct( BaseLaravelResponseFactory $factory ) |
|
| 31 | 31 | { |
| 32 | 32 | $this->factory = $factory; |
| 33 | 33 | } |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | * @param array $headers |
| 41 | 41 | * @return \Illuminate\Http\JsonResponse |
| 42 | 42 | */ |
| 43 | - public function make(array $data, int $status, array $headers = []): JsonResponse |
|
| 43 | + public function make( array $data, int $status, array $headers = [ ] ): JsonResponse |
|
| 44 | 44 | { |
| 45 | - return $this->factory->json($data, $status, $headers); |
|
| 45 | + return $this->factory->json( $data, $status, $headers ); |
|
| 46 | 46 | } |
| 47 | 47 | } |