Skip to content

Commit

Permalink
Merge pull request #1055 from chillbram/patch-1
Browse files Browse the repository at this point in the history
Remove redundant code
  • Loading branch information
colinodell authored Dec 5, 2024
2 parents c101271 + 29e6131 commit ceb835f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function getDelimiterUse(DelimiterInterface $opener, DelimiterInterface $
return 0;
}

return \min($opener->getLength(), $closer->getLength());
// $opener and $closer are the same length so we just return one of them
return $opener->getLength();
}

public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse): void
Expand Down

0 comments on commit ceb835f

Please sign in to comment.