Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php namespace JobApis\JobsToMail\Notifications; |
||
43 | public function toMail($notifiable) |
||
44 | { |
||
45 | $message = (new MailMessage()) |
||
46 | ->subject('New Premium User Signup') |
||
47 | ->line('A new user is interested in JobsToMail premium: '); |
||
48 | |||
49 | foreach ($this->data as $key => $value) { |
||
50 | $message->line($key . ': ' . $value); |
||
51 | } |
||
52 | |||
53 | return $message; |
||
54 | } |
||
55 | } |
||
56 |
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.