Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka authored and github-actions[bot] committed Feb 10, 2024
1 parent ba2a215 commit 45e9454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/Error/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public function str(MessageInterface $message, int $verbosity = 0): string
}

$contentType = strtolower($message->getHeaderLine('content-type'));
if (strpos($contentType, 'application/json') !== false) {
if (false !== strpos($contentType, 'application/json')) {
$body = $message->getBody()->read(self::MAX_BODY_LENGTH);
$msg .= "\r\n\r\n".$body;
if ($message->getBody()->read(1) !== '') {
if ('' !== $message->getBody()->read(1)) {
$msg .= '...';
}
}
Expand Down

0 comments on commit 45e9454

Please sign in to comment.