Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 329b3a7

Browse files
committed
Fix CS
1 parent 8dbd23e commit 329b3a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Input/ArgvInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function parseLongOption(string $token)
137137
$name = substr($token, 2);
138138

139139
if (false !== $pos = strpos($name, '=')) {
140-
if (0 === \strlen($value = substr($name, $pos + 1))) {
140+
if ('' === $value = substr($name, $pos + 1)) {
141141
array_unshift($this->parsed, $value);
142142
}
143143
$this->addLongOption(substr($name, 0, $pos), $value);

Output/TrimmedBufferOutput.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class TrimmedBufferOutput extends Output
2424
private $maxLength;
2525
private $buffer = '';
2626

27-
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) {
27+
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null)
28+
{
2829
if ($maxLength <= 0) {
2930
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
3031
}

0 commit comments

Comments
 (0)