| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | public function getValidatorInstance() |
|
| 22 | { |
||
| 23 | 2 | if (!$this->validator) { |
|
| 24 | 2 | $this->validator = new JsonSchemaValidator( |
|
| 25 | 2 | $this->container->make(\JsonSchema\Validator::class), |
|
| 26 | 2 | $this->container->call([$this, 'schema']), |
|
|
|
|||
| 27 | 2 | $this->json()->all(), |
|
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | 2 | return $this->validator; |
|
| 32 | } |
||
| 51 |