| Conditions | 5 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function matches(Request $request) |
||
| 33 | { |
||
| 34 | foreach ($this->userIdentifierHeaders as $header) { |
||
| 35 | if ($request->headers->has($header)) { |
||
| 36 | if (strtolower($header) === 'cookie' && 0 === $request->cookies->count()) { |
||
| 37 | // ignore empty cookie header |
||
| 38 | continue; |
||
| 39 | } |
||
| 40 | |||
| 41 | return false; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return true; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |