Completed
Push — v2 ( 975246...e7bb8d )
by Alexander
05:01
created
src/Contracts/Pagination/PaginatorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Contracts/TransformFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Contracts/ErrorSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Contracts/Resources/ResourceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,5 +21,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Contracts/Transformers/TransformerResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Http/Responses/Factories/LaravelResponseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Http/Responses/Factories/LumenResponseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @param \Laravel\Lumen\Http\ResponseFactory $factory
29 29
      */
30
-    public function __construct(BaseLumenResponseFactory $factory)
30
+    public function __construct( BaseLumenResponseFactory $factory )
31 31
     {
32 32
         $this->factory = $factory;
33 33
     }
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Http/Responses/Decorators/SuccessFlagDecorator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
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
     {
26
-        return $this->factory->make(array_merge([
26
+        return $this->factory->make( array_merge( [
27 27
             'success' => $status >= 100 || $status < 400,
28
-        ], $data), $status, $headers);
28
+        ], $data ), $status, $headers );
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Http/Responses/Decorators/ResponseDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @param \Flugg\Responder\Contracts\ResponseFactory $factory
28 28
      */
29
-    public function __construct(ResponseFactory $factory)
29
+    public function __construct( ResponseFactory $factory )
30 30
     {
31 31
         $this->factory = $factory;
32 32
     }
@@ -39,5 +39,5 @@  discard block
 block discarded – undo
39 39
      * @param  array $headers
40 40
      * @return \Illuminate\Http\JsonResponse
41 41
      */
42
-    abstract public function make(array $data, int $status, array $headers = []): JsonResponse;
42
+    abstract public function make( array $data, int $status, array $headers = [ ] ): JsonResponse;
43 43
 }
Please login to merge, or discard this patch.