| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 84 | public function conforms(MessageInterface $message) |
|
| 24 | { |
||
| 25 | 84 | $matches = []; |
|
| 26 | |||
| 27 | 84 | foreach ($this->rules as $header => $rule) { |
|
| 28 | 84 | if (0 === \preg_match($rule, $message->getHeaderLine($header), $matches[$header])) { |
|
| 29 | 84 | return false; |
|
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | 57 | return $matches; |
|
| 34 | } |
||
| 36 |