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 | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 321 | public function __construct($dividend) |
|
25 | { |
||
26 | 321 | if (!is_numeric($dividend) || (int) $dividend != $dividend) { |
|
27 | 17 | $message = 'Dividend %s must be an integer'; |
|
28 | 17 | throw new ComponentException(sprintf($message, ValidationException::stringify($dividend))); |
|
29 | } |
||
30 | |||
31 | 304 | $this->dividend = (int) $dividend; |
|
32 | 304 | } |
|
33 | |||
55 |