| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 78 | private static function isValidRegexFlags(string $value): bool |
||
| 79 | { |
||
| 80 | if ('' === $value) { |
||
| 81 | return true; |
||
| 82 | } |
||
| 83 | |||
| 84 | $characters = str_split($value); |
||
| 85 | |||
| 86 | foreach ($characters as $character) { |
||
| 87 | if (!in_array($character, self::PATTERN_MODIFIERS, true)) { |
||
| 88 | return false; |
||
| 89 | } |
||
| 90 | } |
||
| 91 | |||
| 92 | return true; |
||
| 93 | } |
||
| 95 |