Skip to content

Commit

Permalink
SDK-2132: Ajusted fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok committed Nov 28, 2023
1 parent 3fa7c62 commit 358888c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Builder/Printer/ClassPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ protected function isMultiline(array $nodes): bool
$startPos = $node->getStartTokenPos() - 1;
$endPos = $node->getEndTokenPos() + 1;
$text = $this->origTokens->getTokenCode($startPos, $endPos, 0);
if (strpos($text, "\n") === false) {
return false;
}

return true;
return strpos($text, "\n") !== false;
}

return parent::isMultiline($nodes);
Expand Down

0 comments on commit 358888c

Please sign in to comment.