diff options
author | Thomas PEREZ <[email protected]> | 2019-10-09 20:57:28 +0200 |
---|---|---|
committer | Thomas PEREZ <[email protected]> | 2019-10-09 21:00:07 +0200 |
commit | 46783061ceddee1fe8dd4f9aa9e71a2e6a293e7f (patch) | |
tree | 39844e383c16163c8f3cfdc92c06354353069dfd /tests | |
parent | 98940ef86c39217b8bdf61e06b8883024334c45c (diff) |
Php cs fixer
Diffstat (limited to 'tests')
-rw-r--r-- | tests/broken.php | 2 | ||||
-rw-r--r-- | tests/delay.php | 2 | ||||
-rw-r--r-- | tests/echo.php | 2 | ||||
-rw-r--r-- | tests/error.php | 2 | ||||
-rw-r--r-- | tests/failboot.php | 2 | ||||
-rw-r--r-- | tests/head.php | 2 | ||||
-rw-r--r-- | tests/http/cookie.php | 2 | ||||
-rw-r--r-- | tests/http/data.php | 3 | ||||
-rw-r--r-- | tests/http/echo.php | 2 | ||||
-rw-r--r-- | tests/http/echoDelay.php | 2 | ||||
-rw-r--r-- | tests/http/echoerr.php | 2 | ||||
-rw-r--r-- | tests/http/env.php | 2 | ||||
-rw-r--r-- | tests/http/error.php | 2 | ||||
-rw-r--r-- | tests/http/error2.php | 2 | ||||
-rw-r--r-- | tests/http/header.php | 2 | ||||
-rw-r--r-- | tests/http/headers.php | 2 | ||||
-rw-r--r-- | tests/http/ip.php | 2 | ||||
-rw-r--r-- | tests/http/memleak.php | 6 | ||||
-rw-r--r-- | tests/http/payload.php | 4 | ||||
-rw-r--r-- | tests/http/pid.php | 2 | ||||
-rw-r--r-- | tests/http/push.php | 2 | ||||
-rw-r--r-- | tests/http/server.php | 2 | ||||
-rw-r--r-- | tests/http/stuck.php | 2 | ||||
-rw-r--r-- | tests/http/upload.php | 2 | ||||
-rw-r--r-- | tests/http/user-agent.php | 2 | ||||
-rw-r--r-- | tests/pid.php | 2 | ||||
-rw-r--r-- | tests/slow-client.php | 2 | ||||
-rw-r--r-- | tests/slow-destroy.php | 2 | ||||
-rw-r--r-- | tests/slow-pid.php | 2 | ||||
-rw-r--r-- | tests/stop.php | 2 |
30 files changed, 33 insertions, 34 deletions
diff --git a/tests/broken.php b/tests/broken.php index b1a3839e..42b4e7c2 100644 --- a/tests/broken.php +++ b/tests/broken.php @@ -11,4 +11,4 @@ $rr = new RoadRunner\Worker($relay); while ($in = $rr->receive($ctx)) { echo undefined_function(); $rr->send((string)$in); -}
\ No newline at end of file +} diff --git a/tests/delay.php b/tests/delay.php index bfde2fc4..bf9ecc12 100644 --- a/tests/delay.php +++ b/tests/delay.php @@ -15,4 +15,4 @@ while ($in = $rr->receive($ctx)) { } catch (\Throwable $e) { $rr->error((string)$e); } -}
\ No newline at end of file +} diff --git a/tests/echo.php b/tests/echo.php index ba58ff30..1570e3df 100644 --- a/tests/echo.php +++ b/tests/echo.php @@ -14,4 +14,4 @@ while ($in = $rr->receive($ctx)) { } catch (\Throwable $e) { $rr->error((string)$e); } -}
\ No newline at end of file +} diff --git a/tests/error.php b/tests/error.php index ebd3418b..8e1c8d0d 100644 --- a/tests/error.php +++ b/tests/error.php @@ -10,4 +10,4 @@ $rr = new RoadRunner\Worker($relay); while ($in = $rr->receive($ctx)) { $rr->error((string)$in); -}
\ No newline at end of file +} diff --git a/tests/failboot.php b/tests/failboot.php index fa8b96f6..d59462cd 100644 --- a/tests/failboot.php +++ b/tests/failboot.php @@ -1,3 +1,3 @@ <?php ini_set('display_errors', 'stderr'); -throw new Error("failboot error");
\ No newline at end of file +throw new Error("failboot error"); diff --git a/tests/head.php b/tests/head.php index 4f4e4061..88ebd3f2 100644 --- a/tests/head.php +++ b/tests/head.php @@ -14,4 +14,4 @@ while ($in = $rr->receive($ctx)) { } catch (\Throwable $e) { $rr->error((string)$e); } -}
\ No newline at end of file +} diff --git a/tests/http/cookie.php b/tests/http/cookie.php index 196ceee2..97673ef5 100644 --- a/tests/http/cookie.php +++ b/tests/http/cookie.php @@ -331,4 +331,4 @@ final class Cookie { return $this->createHeader(); } -}
\ No newline at end of file +} diff --git a/tests/http/data.php b/tests/http/data.php index c5e0bab0..6570936a 100644 --- a/tests/http/data.php +++ b/tests/http/data.php @@ -5,7 +5,6 @@ use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { - $data = $req->getParsedBody(); ksort($data); @@ -15,4 +14,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(json_encode($data)); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/echo.php b/tests/http/echo.php index 7004ada0..08e29a26 100644 --- a/tests/http/echo.php +++ b/tests/http/echo.php @@ -7,4 +7,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re { $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); return $resp->withStatus(201); -}
\ No newline at end of file +} diff --git a/tests/http/echoDelay.php b/tests/http/echoDelay.php index 2ee2b049..78e85477 100644 --- a/tests/http/echoDelay.php +++ b/tests/http/echoDelay.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re sleep(1); $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); return $resp->withStatus(201); -}
\ No newline at end of file +} diff --git a/tests/http/echoerr.php b/tests/http/echoerr.php index da2ff4d8..7e1d05e7 100644 --- a/tests/http/echoerr.php +++ b/tests/http/echoerr.php @@ -9,4 +9,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); return $resp->withStatus(201); -}
\ No newline at end of file +} diff --git a/tests/http/env.php b/tests/http/env.php index 1e29926f..3755bdea 100644 --- a/tests/http/env.php +++ b/tests/http/env.php @@ -7,4 +7,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re { $resp->getBody()->write($_SERVER['ENV_KEY']); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/error.php b/tests/http/error.php index 6df0d4b5..527e4068 100644 --- a/tests/http/error.php +++ b/tests/http/error.php @@ -6,4 +6,4 @@ use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { throw new Error("error"); -}
\ No newline at end of file +} diff --git a/tests/http/error2.php b/tests/http/error2.php index 617b5a3f..12a672ac 100644 --- a/tests/http/error2.php +++ b/tests/http/error2.php @@ -6,4 +6,4 @@ use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { exit(); -}
\ No newline at end of file +} diff --git a/tests/http/header.php b/tests/http/header.php index e5b295b6..393d9623 100644 --- a/tests/http/header.php +++ b/tests/http/header.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(strtoupper($req->getHeaderLine('input'))); return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']); -}
\ No newline at end of file +} diff --git a/tests/http/headers.php b/tests/http/headers.php index c85d5caf..b6f3967a 100644 --- a/tests/http/headers.php +++ b/tests/http/headers.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(json_encode($req->getHeaders())); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/ip.php b/tests/http/ip.php index 2253e3f8..49eb9285 100644 --- a/tests/http/ip.php +++ b/tests/http/ip.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write($req->getServerParams()['REMOTE_ADDR']); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/memleak.php b/tests/http/memleak.php index 82f08f88..2df7ae63 100644 --- a/tests/http/memleak.php +++ b/tests/http/memleak.php @@ -7,6 +7,6 @@ $mem = ''; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { - $mem .= str_repeat(" ", 1024*1024); - return $resp; -}
\ No newline at end of file + $mem .= str_repeat(" ", 1024*1024); + return $resp; +} diff --git a/tests/http/payload.php b/tests/http/payload.php index 52c0f819..b7a0311f 100644 --- a/tests/http/payload.php +++ b/tests/http/payload.php @@ -5,7 +5,7 @@ use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { - if ( $req->getHeaderLine("Content-Type") != 'application/json' ) { + if ($req->getHeaderLine("Content-Type") != 'application/json') { $resp->getBody()->write("invalid content-type"); return $resp; } @@ -15,4 +15,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(json_encode(array_flip($p))); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/pid.php b/tests/http/pid.php index 0c9a4e4d..f22d8e23 100644 --- a/tests/http/pid.php +++ b/tests/http/pid.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write((string)getmypid()); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/push.php b/tests/http/push.php index bf56dbb6..efe9eeda 100644 --- a/tests/http/push.php +++ b/tests/http/push.php @@ -7,4 +7,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re { $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); return $resp->withAddedHeader("http2-push", __FILE__)->withStatus(201); -}
\ No newline at end of file +} diff --git a/tests/http/server.php b/tests/http/server.php index e5b295b6..393d9623 100644 --- a/tests/http/server.php +++ b/tests/http/server.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(strtoupper($req->getHeaderLine('input'))); return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']); -}
\ No newline at end of file +} diff --git a/tests/http/stuck.php b/tests/http/stuck.php index 7df8b0f7..2dea0572 100644 --- a/tests/http/stuck.php +++ b/tests/http/stuck.php @@ -8,4 +8,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re sleep(10); $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); return $resp->withStatus(201); -}
\ No newline at end of file +} diff --git a/tests/http/upload.php b/tests/http/upload.php index 2f7c0b64..bb4af766 100644 --- a/tests/http/upload.php +++ b/tests/http/upload.php @@ -32,4 +32,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re $resp->getBody()->write(json_encode($files, JSON_UNESCAPED_SLASHES)); return $resp; -}
\ No newline at end of file +} diff --git a/tests/http/user-agent.php b/tests/http/user-agent.php index 029f49e9..03d7a2c8 100644 --- a/tests/http/user-agent.php +++ b/tests/http/user-agent.php @@ -7,4 +7,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re { $resp->getBody()->write($_SERVER['HTTP_USER_AGENT']); return $resp; -}
\ No newline at end of file +} diff --git a/tests/pid.php b/tests/pid.php index bc1928a6..bf10a025 100644 --- a/tests/pid.php +++ b/tests/pid.php @@ -14,4 +14,4 @@ } catch (\Throwable $e) { $rr->error((string)$e); } - }
\ No newline at end of file + } diff --git a/tests/slow-client.php b/tests/slow-client.php index f09142b5..bc4b0561 100644 --- a/tests/slow-client.php +++ b/tests/slow-client.php @@ -35,4 +35,4 @@ switch ($goridge) { usleep($bootDelay * 1000); require_once sprintf("%s/%s.php", __DIR__, $test); -usleep($shutdownDelay * 1000);
\ No newline at end of file +usleep($shutdownDelay * 1000); diff --git a/tests/slow-destroy.php b/tests/slow-destroy.php index 0f0abc1c..6af61050 100644 --- a/tests/slow-destroy.php +++ b/tests/slow-destroy.php @@ -34,4 +34,4 @@ switch ($goridge) { require_once sprintf("%s/%s.php", __DIR__, $test); -sleep(10);
\ No newline at end of file +sleep(10); diff --git a/tests/slow-pid.php b/tests/slow-pid.php index daaf2583..747e7e86 100644 --- a/tests/slow-pid.php +++ b/tests/slow-pid.php @@ -15,4 +15,4 @@ } catch (\Throwable $e) { $rr->error((string)$e); } - }
\ No newline at end of file + } diff --git a/tests/stop.php b/tests/stop.php index caa485d6..0100ad0f 100644 --- a/tests/stop.php +++ b/tests/stop.php @@ -22,4 +22,4 @@ while ($in = $rr->receive($ctx)) { } catch (\Throwable $e) { $rr->error((string)$e); } -}
\ No newline at end of file +} |