| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 12 | public function apply($instance, stdClass $schema, Context $context, Walker $walker) |
|
| 42 | { |
||
| 43 | 12 | if (count($instance) < $schema->minItems) { |
|
| 44 | 5 | $context->addViolation( |
|
| 45 | 5 | 'number of items should be greater than or equal to %s', |
|
| 46 | 5 | [$schema->minItems] |
|
| 47 | 5 | ); |
|
| 48 | 5 | } |
|
| 49 | 12 | } |
|
| 50 | } |
||
| 51 |