| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 38 | public function matches(Request $request) |
||
| 39 | { |
||
| 40 | if(!$request->attributes->has(RequestMeta::ATTRIBUTE_URI)){ |
||
| 41 | return false; |
||
| 42 | } |
||
| 43 | $description = $this->repository->get($request->attributes->get(RequestMeta::ATTRIBUTE_URI)); |
||
| 44 | $operation = $description |
||
| 45 | ->getPath($request->attributes->get(RequestMeta::ATTRIBUTE_PATH)) |
||
| 46 | ->getOperation($request->getMethod()); |
||
| 47 | |||
| 48 | return $operation->isSecured(); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |