| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 2 | public function verifyRequest(GetResponseEvent $event) |
|
| 33 | { |
||
| 34 | 2 | $request = $event->getRequest(); |
|
| 35 | |||
| 36 | 2 | if (!$request->attributes->has('_innmind_resource_definition')) { |
|
| 37 | 1 | return; |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | $this->verifier->verify( |
|
| 41 | 1 | $request->attributes->get('_innmind_request'), |
|
| 42 | 1 | $request->attributes->get('_innmind_resource_definition') |
|
| 43 | ); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |