Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
29 | 98 | public function conforms(MessageInterface $message) |
|
30 | { |
||
31 | 98 | $matches = []; |
|
32 | |||
33 | 98 | foreach ($this->rules as $header => $rule) { |
|
34 | 98 | if (0 === preg_match($rule, $message->getHeaderLine($header), $matches[$header])) { |
|
35 | 91 | return false; |
|
36 | } |
||
37 | 84 | } |
|
38 | |||
39 | 77 | return $matches; |
|
40 | } |
||
41 | } |
||
42 |