Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 47e9ddf

Browse files
committed
Fix CS
1 parent eb22db4 commit 47e9ddf

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

src/MarshalMiddlewareTrait.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ private function marshalMiddlewarePipe(
134134
* @throws Exception\InvalidMiddlewareException if $middleware does not resolve
135135
* to either an invokable class or MiddlewareInterface instance.
136136
*/
137-
private function marshalInvokableMiddleware(string $middleware, ResponseInterface $responsePrototype): MiddlewareInterface
138-
{
137+
private function marshalInvokableMiddleware(
138+
string $middleware,
139+
ResponseInterface $responsePrototype
140+
): MiddlewareInterface {
139141
if (! class_exists($middleware)) {
140142
throw new Exception\InvalidMiddlewareException(sprintf(
141143
'Unable to create middleware "%s"; not a valid class or service name',

src/Middleware/ErrorResponseGenerator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ public function __construct(
6666
* @param ResponseInterface $response
6767
* @return ResponseInterface
6868
*/
69-
public function __invoke(Throwable $e, ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
70-
{
69+
public function __invoke(
70+
Throwable $e,
71+
ServerRequestInterface $request,
72+
ResponseInterface $response
73+
): ResponseInterface {
7174
$response = $response->withStatus(Utils::getStatusCode($e, $response));
7275

7376
if ($this->renderer) {

src/Middleware/WhoopsErrorResponseGenerator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ public function __construct($whoops)
5252
* @param ResponseInterface $response
5353
* @return ResponseInterface
5454
*/
55-
public function __invoke(Throwable $e, ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
56-
{
55+
public function __invoke(
56+
Throwable $e,
57+
ServerRequestInterface $request,
58+
ResponseInterface $response
59+
): ResponseInterface {
5760
// Walk through all handlers
5861
foreach ($this->whoops->getHandlers() as $handler) {
5962
// Add fancy data for the PrettyPageHandler

0 commit comments

Comments
 (0)