Skip to content

Commit 9e3fd69

Browse files
committed
refactor: extract methods
1 parent 4a18823 commit 9e3fd69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/SegmentChecker.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ protected static function isOffsetDue($offset, $pos, $time)
5454
return $time[$pos] == $offset;
5555
}
5656

57+
return static::inModifier($offset, $pos, $time);
58+
}
59+
60+
protected static function inModifier($offset, $pos, $time)
61+
{
5762
$isModifier = strpbrk($offset, 'LCW#');
5863

5964
if ($pos === 2 && $isModifier) {

0 commit comments

Comments
 (0)