Passed
Push — master ( 192496...a753ce )
by Enrico
02:07
created
src/Provider/Psr7/DiactorosServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,15 +46,15 @@
 block discarded – undo
46 46
      */
47 47
     public function register(Container $app)
48 48
     {
49
-        $app['uSilex.request'] = function () {
49
+        $app['uSilex.request'] = function() {
50 50
             return ServerRequestFactory::fromGlobals();
51 51
         };
52 52
         
53
-        $app['uSilex.responseEmitter'] = $app->protect(function ($response) {
53
+        $app['uSilex.responseEmitter'] = $app->protect(function($response) {
54 54
             (new SapiStreamEmitter())->emit($response);
55 55
         });
56 56
               
57
-        $app['uSilex.exceptionHandler'] = $app->protect(function ($e) {
57
+        $app['uSilex.exceptionHandler'] = $app->protect(function($e) {
58 58
             return new TextResponse($e->getMessage(), 500);
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
src/Provider/Psr7/GuzzleServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,15 +46,15 @@
 block discarded – undo
46 46
      */
47 47
     public function register(Container $app)
48 48
     {
49
-        $app['uSilex.request'] = function () {
49
+        $app['uSilex.request'] = function() {
50 50
             return ServerRequest::fromGlobals();
51 51
         };
52 52
         
53
-        $app['uSilex.responseEmitter'] = $app->protect(function ($response) {
53
+        $app['uSilex.responseEmitter'] = $app->protect(function($response) {
54 54
             (new SapiStreamEmitter())->emit($response);
55 55
         });
56 56
               
57
-        $app['uSilex.exceptionHandler'] = $app->protect(function ($e) {
57
+        $app['uSilex.exceptionHandler'] = $app->protect(function($e) {
58 58
             return new Response(500, [], $e->getMessage());
59 59
         });
60 60
     }
Please login to merge, or discard this patch.