Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
52 | 1 | public static function all($pattern, $subject, Results\PregObject $object = null): Results\PregObject |
|
53 | { |
||
54 | 1 | $object = static::pregObject($object); |
|
55 | |||
56 | 1 | $object->flags = null === $object->flags ? $object->flags : PREG_PATTERN_ORDER; |
|
57 | 1 | $object->result = \preg_match_all( |
|
58 | 1 | $pattern, |
|
59 | 1 | $subject, |
|
60 | 1 | $object->matches, |
|
61 | 1 | $object->flags, |
|
62 | 1 | $object->offset |
|
63 | ); |
||
64 | |||
65 | 1 | return $object; |
|
66 | } |
||
69 |