We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.1406 |
Changes | 0 |
1 | <?php |
||
28 | 2 | public function __construct($reference, Validatable $validator = null, $mandatory = true) |
|
29 | { |
||
30 | 2 | if (!is_string($reference) || empty($reference)) { |
|
31 | throw new ComponentException('Invalid attribute/property name'); |
||
32 | } |
||
33 | |||
34 | 2 | parent::__construct($reference, $validator, $mandatory); |
|
35 | 2 | } |
|
50 |