Passed
Branch master (9592aa)
by Bram
02:19
created
Category
src/Heartbeat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
example.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.