Skip to content

Commit

Permalink
Merge pull request #34 from PhpSlides/dev
Browse files Browse the repository at this point in the history
fixes bugs & errors
  • Loading branch information
dconco authored Nov 10, 2024
2 parents aef6ca8 + 2224c92 commit 08be472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Formatter/Views/FormatPslTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ protected function psl_tags()
function ($matches) {
// Trim the content inside the PHP tags, removing trailing semicolons
$val = trim($matches[1]);
$val = trim($val, ';');
$val = str_ends_with(')', $val) ? $val . ';' : $val;

// Reformat the PHP content and return it
return '<' . '?php ' . $val . '; ?' . '>';
return '<' . '?php ' . $val . ' ?' . '>';
},
$this->contents
);
Expand Down

0 comments on commit 08be472

Please sign in to comment.