Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
73 | public function process($channelName) |
||
74 | { |
||
75 | $body = $this->templating->render( |
||
76 | $this->template, |
||
77 | ['channel' => $channelName] |
||
78 | ); |
||
79 | |||
80 | $message = \Swift_Message::newInstance(); |
||
81 | $message->setSubject($this->subject) |
||
82 | ->setFrom($this->from) |
||
83 | ->setTo($this->to) |
||
84 | ->setBody($body); |
||
85 | $this->mailer->send($message); |
||
86 | } |
||
87 | } |
||
88 |
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.