From 45e945447ed48e11f433536c0a5c1e4658eec7b9 Mon Sep 17 00:00:00 2001 From: k0ka Date: Sat, 10 Feb 2024 09:55:16 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Common/Error/Builder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/Error/Builder.php b/src/Common/Error/Builder.php index b4492457..f2717aa1 100644 --- a/src/Common/Error/Builder.php +++ b/src/Common/Error/Builder.php @@ -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 .= '...'; } }