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