Passed
Push — master ( 917486...ea8275 )
by Anatoly
01:36
created
tests/Middleware/BarMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 	public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
21 21
 	{
22
-		$response = ! $this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
22
+		$response = !$this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
23 23
 
24 24
 		return $response
25 25
 		->withAddedHeader('x-middleware', 'bar')
Please login to merge, or discard this patch.
tests/Middleware/QuxMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 	public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
21 21
 	{
22
-		$response = ! $this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
22
+		$response = !$this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
23 23
 
24 24
 		return $response
25 25
 		->withAddedHeader('x-middleware', 'qux')
Please login to merge, or discard this patch.
tests/Middleware/BazMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 	public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
21 21
 	{
22
-		$response = ! $this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
22
+		$response = !$this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
23 23
 
24 24
 		return $response
25 25
 		->withAddedHeader('x-middleware', 'baz')
Please login to merge, or discard this patch.
tests/Middleware/FooMiddlewareTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 	public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
21 21
 	{
22
-		$response = ! $this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
22
+		$response = !$this->breakable ? $handler->handle($request) : (new ResponseFactory)->createResponse();
23 23
 
24 24
 		return $response
25 25
 		->withAddedHeader('x-middleware', 'foo')
Please login to merge, or discard this patch.
tests/RouteTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 		$this->assertInstanceOf(RouteInterface::class, $route->addPrefix($bar));
84 84
 
85
-		$this->assertEquals($bar.$foo, $route->getPath());
85
+		$this->assertEquals($bar . $foo, $route->getPath());
86 86
 	}
87 87
 
88 88
 	public function testAddSeveralPrefixex()
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		$route->addPrefix($bar);
97 97
 		$route->addPrefix($baz);
98 98
 
99
-		$this->assertEquals($baz.$bar.$foo, $route->getPath());
99
+		$this->assertEquals($baz . $bar . $foo, $route->getPath());
100 100
 	}
101 101
 
102 102
 	public function testAddPattern()
Please login to merge, or discard this patch.
tests/RouterTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,8 +117,7 @@
 block discarded – undo
117 117
 		try
118 118
 		{
119 119
 			$router->match($request);
120
-		}
121
-		catch (MethodNotAllowedException $e)
120
+		} catch (MethodNotAllowedException $e)
122 121
 		{
123 122
 			$this->assertEquals(['POST', 'PATCH', 'DELETE'], $e->getAllowedMethods());
124 123
 
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 			}
89 89
 		}
90 90
 
91
-		if (! empty($allowed))
91
+		if (!empty($allowed))
92 92
 		{
93 93
 			throw new MethodNotAllowedException($request, $allowed);
94 94
 		}
Please login to merge, or discard this patch.