Skip to content

Commit

Permalink
Merge pull request #3218 from mehdihasanpour/refactor-some-code
Browse files Browse the repository at this point in the history
Refactor some code
  • Loading branch information
l0gicgate authored Jul 7, 2022
2 parents 2d2a295 + c3dbd54 commit 484a32a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1862,9 +1862,7 @@ public function testCanBeReExecutedRecursivelyDuringDispatch(): void

/** @var ResponseInterface $response */
$response = $app->handle($request->withAddedHeader('X-NESTED', '1'));
$response = $response->withAddedHeader('X-TRACE', 'outer');

return $response;
return $response->withAddedHeader('X-TRACE', 'outer');
});

$middlewareProphecy2 = $this->prophesize(MiddlewareInterface::class);
Expand Down
10 changes: 2 additions & 8 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,10 @@
],
RouteCollector::class => [
'is_readable' => function (string $file): bool {
if (stripos($file, 'non-readable.cache') !== false) {
return false;
}
return true;
return stripos($file, 'non-readable.cache') === false;
},
'is_writable' => function (string $path): bool {
if (stripos($path, 'non-writable-directory') !== false) {
return false;
}
return true;
return stripos($path, 'non-writable-directory') === false;
}
]
]);

0 comments on commit 484a32a

Please sign in to comment.