Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public static function strings(array $strings, array $options = []) |
||
30 | { |
||
31 | return array_map(function($matcher) use ($options) { |
||
32 | return new Rule( |
||
33 | $matcher instanceof MatcherInterface ? $matcher : new SubStringMatcher($matcher), |
||
34 | array_replace(['factory' => new TokenFactory(ContextualToken::class)], $options) |
||
35 | ); |
||
36 | }, $strings); |
||
37 | } |
||
38 | } |
||
39 |