Passed
Pull Request — master (#210)
by
unknown
06:32 queued 03:37
created
src/FractalServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Fractal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,19 +94,19 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.