@@ -46,7 +46,7 @@ |
||
| 46 | 46 | protected function getHandler() |
| 47 | 47 | { |
| 48 | 48 | if (is_null($this->handler)) { |
| 49 | - $this->handler = function () { |
|
| 49 | + $this->handler = function() { |
|
| 50 | 50 | return new Response(self::MESSAGE, 200, array('Content-Type' => 'text/plain')); |
| 51 | 51 | }; |
| 52 | 52 | } |
@@ -8,14 +8,14 @@ |
||
| 8 | 8 | |
| 9 | 9 | $diContainer = array('db.name' => 'super_important_production_db'); |
| 10 | 10 | |
| 11 | -$app = new CallableHttpKernel(function (Request $request) { |
|
| 11 | +$app = new CallableHttpKernel(function(Request $request) { |
|
| 12 | 12 | return new Response('#yolo'); |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | 15 | $app = (new Stack\Builder) |
| 16 | 16 | ->push(Heartbeat::class) |
| 17 | 17 | ->push(Heartbeat::class, '/just-a-diffent-route') |
| 18 | - ->push(Heartbeat::class, '/custom', function () use ($diContainer) { |
|
| 18 | + ->push(Heartbeat::class, '/custom', function() use ($diContainer) { |
|
| 19 | 19 | return new Response( |
| 20 | 20 | 'Custom heartbeat to check some stuff in db:' . $diContainer['db.name'] |
| 21 | 21 | ); |