| Conditions | 7 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 62 | public function isExcluded(ServerRequestInterface $request) |
||
| 63 | { |
||
| 64 | foreach ($this->headers as $header => $value) { |
||
| 65 | if ($value === null && $request->hasHeader($header)) { |
||
| 66 | return true; |
||
| 67 | } elseif ($value !== null && (trim($value) === $request->getHeaderLine($header) |
||
| 68 | || @preg_match(trim($value), $request->getHeaderLine($header))) |
||
| 69 | ) { |
||
| 70 | return true; |
||
| 71 | } |
||
| 72 | } |
||
| 73 | |||
| 74 | return false; |
||
| 75 | } |
||
| 76 | } |
||
| 77 |