Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jan 31, 2024
1 parent 350788d commit 30a3e47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Event/Http/Psr7Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static function parseBodyAndUploadedFiles(HttpRequestEvent $event): arra

// Parse the body as multipart/form-data
$document = new Part("Content-type: $contentType\r\n\r\n" . $event->getBody());
if (!$document->isMultiPart()) {
if (! $document->isMultiPart()) {
return [[], null];
}
$files = [];
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/Http/CommonHttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ abstract protected function assertUri(string $expected): void;

abstract protected function assertHasMultiHeader(bool $expected): void;

abstract protected function assertParsedBody(array|null $expected): void;
abstract protected function assertParsedBody(array | null $expected): void;

abstract protected function assertSourceIp(string $expected): void;

Expand Down
2 changes: 1 addition & 1 deletion tests/Event/Http/HttpRequestEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function assertSourceIp(string $expected): void
$this->assertEquals($expected, $this->event->getSourceIp());
}

protected function assertParsedBody(array|null $expected): void
protected function assertParsedBody(array | null $expected): void
{
// Not applicable here since the class doesn't parse the body
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/Http/Psr7BridgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected function assertHasMultiHeader(bool $expected): void
// Not applicable here
}

protected function assertParsedBody(array|null $expected): void
protected function assertParsedBody(array | null $expected): void
{
$this->assertEquals($expected, $this->request->getParsedBody());
}
Expand Down

0 comments on commit 30a3e47

Please sign in to comment.