Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
35 | 1 | View Code Duplication | public function toArray() |
36 | { |
||
37 | 1 | $array = parent::toArray(); |
|
38 | 1 | $array['capture'] = true; |
|
39 | |||
40 | 1 | if ($this->dueDate) { |
|
41 | 1 | $array['due_date'] = $this->dueDate->format(DATE_RFC3339); |
|
42 | 1 | } |
|
43 | |||
44 | 1 | $array['payment_details']['issuers'] = ['BCMC']; |
|
45 | 1 | return $array; |
|
46 | } |
||
47 | } |
||
48 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.