@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function register() |
33 | 33 | { |
34 | - $this->app->singleton('fractal', function ($app, $arguments) { |
|
34 | + $this->app->singleton('fractal', function($app, $arguments) { |
|
35 | 35 | return fractal(...$arguments); |
36 | 36 | }); |
37 | 37 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function setupMacro() |
58 | 58 | { |
59 | - Collection::macro('transformWith', function ($transformer) { |
|
59 | + Collection::macro('transformWith', function($transformer) { |
|
60 | 60 | return fractal($this, $transformer); |
61 | 61 | }); |
62 | 62 | } |
@@ -94,19 +94,19 @@ |
||
94 | 94 | $response->setData($this->createData()->toArray()); |
95 | 95 | |
96 | 96 | if (is_int($statusCode)) { |
97 | - $statusCode = function (JsonResponse $response) use ($statusCode) { |
|
97 | + $statusCode = function(JsonResponse $response) use ($statusCode) { |
|
98 | 98 | return $response->setStatusCode($statusCode); |
99 | 99 | }; |
100 | 100 | } |
101 | 101 | |
102 | 102 | if (is_array($headers)) { |
103 | - $headers = function (JsonResponse $response) use ($headers) { |
|
103 | + $headers = function(JsonResponse $response) use ($headers) { |
|
104 | 104 | return $response->withHeaders($headers); |
105 | 105 | }; |
106 | 106 | } |
107 | 107 | |
108 | 108 | if (is_int($options)) { |
109 | - $options = function (JsonResponse $response) use ($options) { |
|
109 | + $options = function(JsonResponse $response) use ($options) { |
|
110 | 110 | $response->setEncodingOptions($options); |
111 | 111 | |
112 | 112 | return $response; |