Completed
Push — master ( ba7c5d...c3b626 )
by Julián
02:08
created
tests/Janitor/JanitorTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $response = $janitor(
81 81
             ServerRequestFactory::fromGlobals(),
82 82
             new Response('php://temp'),
83
-            function ($request, $response) {
83
+            function($request, $response) {
84 84
                 return $response->withHeader('janitor', 'tested');
85 85
             }
86 86
         );
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $response = $janitor(
109 109
             $request,
110 110
             new Response('php://temp'),
111
-            function () {
111
+            function() {
112 112
             }
113 113
         );
114 114
         $this->assertTrue(substr($response->getBody(), 0, 1) === '{');
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
         $watcher->expects($this->any())->method('isActive')->will($this->returnValue(true));
131 131
         $this->janitor->addWatcher($watcher);
132 132
 
133
-        $this->janitor->setHandler(function ($request, $response, $watcher) {
133
+        $this->janitor->setHandler(function($request, $response, $watcher) {
134 134
             return $response->withHeader('active_watcher', get_class($watcher));
135 135
         });
136 136
 
137 137
         $response = $janitor(
138 138
             ServerRequestFactory::fromGlobals(),
139 139
             new Response('php://temp'),
140
-            function () {
140
+            function() {
141 141
             }
142 142
         );
143 143
         $this->assertEquals(get_class($watcher), $response->getHeaderLine('active_watcher'));
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $response = $janitor(
170 170
             ServerRequestFactory::fromGlobals(),
171 171
             new Response('php://temp'),
172
-            function ($request, $response) use ($customAttributeName) {
172
+            function($request, $response) use ($customAttributeName) {
173 173
                 return $response->withHeader(
174 174
                     $customAttributeName,
175 175
                     get_class($request->getAttribute($customAttributeName))
Please login to merge, or discard this patch.