We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 8 | public function addPropertyConstraint($property, Constraint $constraint) |
|
23 | { |
||
24 | 8 | if (!isset($this->properties[$property])) { |
|
25 | 8 | $this->properties[$property] = new PropertyMetadata($property); |
|
26 | |||
27 | 8 | $this->addPropertyMetadata($this->properties[$property]); |
|
28 | } |
||
29 | |||
30 | 8 | $constraint->addImplicitGroupName($this->getDefaultGroup()); |
|
31 | |||
32 | 8 | $this->properties[$property]->addConstraint($constraint); |
|
33 | |||
34 | 8 | return $this; |
|
35 | } |
||
44 |