Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 4 | public function validate(Request $request) |
|
26 | { |
||
27 | try { |
||
28 | 4 | $this->assertRequestMatch($request, $this->schemaManager); |
|
29 | 4 | } catch (\RuntimeException $e) { |
|
30 | 3 | if ($this->strict || $e->getMessage() !== 'Request URI does not match with any swagger path definition') { |
|
31 | 2 | throw $e; |
|
32 | } |
||
33 | } |
||
34 | 2 | } |
|
35 | |||
44 |