Passed
Push — master ( 113ea2...2c39bf )
by Anatoly
02:18
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.
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.
tests/RouteTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 		$this->assertInstanceOf(RouteInterface::class, $route->addPrefix($bar));
108 108
 
109
-		$this->assertEquals($bar.$foo, $route->getPath());
109
+		$this->assertEquals($bar . $foo, $route->getPath());
110 110
 	}
111 111
 
112 112
 	public function testAddSeveralPrefixex()
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		$route->addPrefix($bar);
121 121
 		$route->addPrefix($baz);
122 122
 
123
-		$this->assertEquals($baz.$bar.$foo, $route->getPath());
123
+		$this->assertEquals($baz . $bar . $foo, $route->getPath());
124 124
 	}
125 125
 
126 126
 	public function testAddSuffix()
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 		$this->assertInstanceOf(RouteInterface::class, $route->addSuffix($bar));
134 134
 
135
-		$this->assertEquals($foo.$bar, $route->getPath());
135
+		$this->assertEquals($foo . $bar, $route->getPath());
136 136
 	}
137 137
 
138 138
 	public function testAddSeveralSuffixes()
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		$route->addSuffix($bar);
147 147
 		$route->addSuffix($baz);
148 148
 
149
-		$this->assertEquals($foo.$bar.$baz, $route->getPath());
149
+		$this->assertEquals($foo . $bar . $baz, $route->getPath());
150 150
 	}
151 151
 
152 152
 	public function testAddMethod()
Please login to merge, or discard this patch.