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