Completed
Push — master ( 5e287c...36811c )
by Alexander
03:40
created
src/Transformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         if ( method_exists( $this, 'transformPivot' ) ) {
120 120
             $data = $this->transformPivot( $pivot );
121 121
 
122
-            return app( 'responder.success' )->transform( $pivot, function () use ( $data ) {
122
+            return app( 'responder.success' )->transform( $pivot, function () use ($data) {
123 123
                 return $data;
124 124
             } );
125 125
         }
Please login to merge, or discard this patch.
src/ResponderServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,22 +88,22 @@
 block discarded – undo
88 88
     {
89 89
         $config = $this->app[ 'config' ];
90 90
 
91
-        $this->app->singleton( 'responder.success', function () use ( $config ) {
91
+        $this->app->singleton( 'responder.success', function () use ($config) {
92 92
             return new SuccessResponseFactory( $config->get( 'responder.status_code' ) );
93 93
         } );
94 94
 
95
-        $this->app->singleton( 'responder.error', function () use ( $config ) {
95
+        $this->app->singleton( 'responder.error', function () use ($config) {
96 96
             return new ErrorResponseFactory( $config->get( 'responder.status_code' ) );
97 97
         } );
98 98
 
99 99
         $this->app->singleton( 'responder', function ( $app ) {
100
-            return ( new Responder( $app[ 'responder.success' ], $app[ 'responder.error' ] ) );
100
+            return (new Responder( $app[ 'responder.success' ], $app[ 'responder.error' ] ));
101 101
         } );
102 102
 
103
-        $this->app->singleton( 'responder.manager', function () use ( $config ) {
103
+        $this->app->singleton( 'responder.manager', function () use ($config) {
104 104
             $serializer = $config->get( 'responder.serializer' );
105 105
 
106
-            return ( new Manager() )->setSerializer( new $serializer );
106
+            return (new Manager())->setSerializer( new $serializer );
107 107
         } );
108 108
 
109 109
         $this->app->alias( 'responder', ResponderContract::class );
Please login to merge, or discard this patch.