Conditions | 4 |
Paths | 8 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
71 | View Code Duplication | public static function create(array $payload) |
|
1 ignored issue
–
show
|
|||
72 | { |
||
73 | $metadata = isset($payload['metadata']) ? $payload['metadata'] : null; |
||
74 | $text = isset($payload['text']) ? $payload['text'] : null; |
||
75 | $attachments = isset($payload['attachments']) ? $payload['attachments'] : []; |
||
76 | |||
77 | return new static(true, $payload['app_id'], $payload['mid'], $payload['seq'], $metadata, $text, $attachments); |
||
78 | } |
||
79 | } |
||
80 |
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.