Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 3, 2023
1 parent 1ffe0bf commit 8f9aa65
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private function parseStringValue(BetterTokenIterator $tokenIterator, string $cu
$tokenIterator->next();
}
}

return $currentTokenValue;
}

Expand All @@ -119,6 +120,7 @@ private function parseMultilineOrWhiteSpacedString(
if (! $tokenIterator->isCurrentTokenType(Lexer::TOKEN_PHPDOC_EOL)) {
$currentTokenValue .= ' ';
}

if (str_starts_with($currentTokenValue, '"') && str_contains(
$tokenIterator->currentTokenValue(),
'"'
Expand All @@ -132,12 +134,13 @@ private function parseMultilineOrWhiteSpacedString(
$tokenIterator->next();
break;
}

$currentTokenValue .= $tokenIterator->currentTokenValue();
$tokenIterator->next();
}

if (str_starts_with($currentTokenValue, '"') && str_ends_with($currentTokenValue, '"')) {
$currentTokenValue = trim(str_replace('"', '', $currentTokenValue));
return trim(str_replace('"', '', $currentTokenValue));
}

return $currentTokenValue;
Expand Down

0 comments on commit 8f9aa65

Please sign in to comment.