| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function __construct($value) |
||
| 16 | { |
||
| 17 | $options = array( |
||
| 18 | 'options' => array( |
||
| 19 | 'min_range' => 100000000000000, |
||
| 20 | 'max_range' => 999999999999999 |
||
| 21 | ) |
||
| 22 | ); |
||
| 23 | |||
| 24 | $value = filter_var($value, FILTER_VALIDATE_INT, $options); |
||
| 25 | |||
| 26 | if (false === $value) { |
||
| 27 | throw new InvalidNativeArgumentException($value, array('int (15 digits)')); |
||
| 28 | } |
||
| 29 | |||
| 30 | $value = $this->validateLuhnAlgorithm($value); |
||
| 31 | |||
| 32 | $this->value = $value; |
||
| 33 | } |
||
| 34 | |||
| 57 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.