Skip to content

Commit

Permalink
disable PR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab authored and samsonasik committed Dec 2, 2021
1 parent 64baf19 commit c76002c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpParser/Printer/BetterStandardPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public function printFormatPreserving(array $stmts, array $origStmts, array $ori

// strip empty starting/ending php tags
if (array_key_exists(0, $stmts) && $stmts[0] instanceof FileWithoutNamespace) {
$content = Strings::replace($content, self::EMPTY_STARTING_TAG_REGEX, '');
$content = Strings::replace(\rtrim($content), self::EMPTY_ENDING_TAG_REGEX, '', ) ."\n";
// $content = Strings::replace($content, self::EMPTY_STARTING_TAG_REGEX, '');
// $content = Strings::replace(\rtrim($content), self::EMPTY_ENDING_TAG_REGEX, '', ) ."\n";
}

// add new line in case of added stmts
Expand Down

0 comments on commit c76002c

Please sign in to comment.