@@ -80,7 +80,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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)) |