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