From 329b3a75cc6b16d435ba1b1a41df54a53382a3f0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 4 Nov 2021 09:49:31 +0100 Subject: [PATCH] Fix CS --- Input/ArgvInput.php | 2 +- Output/TrimmedBufferOutput.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Input/ArgvInput.php b/Input/ArgvInput.php index b63529509..63f40f271 100644 --- a/Input/ArgvInput.php +++ b/Input/ArgvInput.php @@ -137,7 +137,7 @@ private function parseLongOption(string $token) $name = substr($token, 2); if (false !== $pos = strpos($name, '=')) { - if (0 === \strlen($value = substr($name, $pos + 1))) { + if ('' === $value = substr($name, $pos + 1)) { array_unshift($this->parsed, $value); } $this->addLongOption(substr($name, 0, $pos), $value); diff --git a/Output/TrimmedBufferOutput.php b/Output/TrimmedBufferOutput.php index 4ca63c49b..87c04a892 100644 --- a/Output/TrimmedBufferOutput.php +++ b/Output/TrimmedBufferOutput.php @@ -24,7 +24,8 @@ class TrimmedBufferOutput extends Output private $maxLength; private $buffer = ''; - public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) { + public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) + { if ($maxLength <= 0) { throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength)); }