Passed
Push — master ( b6b1fe...a07f0a )
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.
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 				{
86 86
 					$attributes = \array_filter($matches, function($value, $name)
87 87
 					{
88
-						return ! ('' === $value || \is_int($name));
88
+						return !('' === $value || \is_int($name));
89 89
 
90 90
 					}, \ARRAY_FILTER_USE_BOTH);
91 91
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 			}
95 95
 		}
96 96
 
97
-		if (! empty($allowed))
97
+		if (!empty($allowed))
98 98
 		{
99 99
 			throw new MethodNotAllowedException($request, $allowed);
100 100
 		}
Please login to merge, or discard this patch.