@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | return tap(new Response( |
57 | 57 | $this->app['encryptor']->encrypt('success'), 200, ['Content-Type' => 'application/json'] |
58 | - ), function ($response) { |
|
58 | + ), function($response) { |
|
59 | 59 | $this->app['logger']->debug('Response created:', ['content' => $response->getContent()]); |
60 | 60 | }); |
61 | 61 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function push($handler) |
73 | 73 | { |
74 | 74 | if (is_string($handler)) { |
75 | - $handler = function ($payload) use ($handler) { |
|
75 | + $handler = function($payload) use ($handler) { |
|
76 | 76 | return (new $handler($this->app))->__invoke($payload); |
77 | 77 | }; |
78 | 78 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register(Container $pimple) |
28 | 28 | { |
29 | - isset($pimple['logger']) || $pimple['logger'] = function ($app) { |
|
29 | + isset($pimple['logger']) || $pimple['logger'] = function($app) { |
|
30 | 30 | return new Logger('EasyDingTalk'); |
31 | 31 | }; |
32 | 32 | } |