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 | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 8 | public function __construct(Validatable $when, Validatable $then, Validatable $else = null) |
|
| 26 | { |
||
| 27 | 8 | $this->when = $when; |
|
| 28 | 8 | $this->then = $then; |
|
| 29 | 8 | if (null === $else) { |
|
| 30 | 1 | $else = new AlwaysInvalid(); |
|
| 31 | 1 | $else->setTemplate(AlwaysInvalidException::SIMPLE); |
|
| 32 | } |
||
| 33 | |||
| 34 | 8 | $this->else = $else; |
|
| 35 | 8 | } |
|
| 68 |