Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
66 | public function process($channelName) |
||
67 | { |
||
68 | $body = $this->templating->render( |
||
69 | 'ItkgDelayEventBundle:Channel:email.html.twig', |
||
70 | ['channel' => $channelName] |
||
71 | ); |
||
72 | |||
73 | $message = \Swift_Message::newInstance(); |
||
74 | $message->setSubject($this->subject) |
||
75 | ->setFrom($this->from) |
||
76 | ->setTo($this->to) |
||
77 | ->setBody($body); |
||
78 | $this->mailer->send($message); |
||
79 | } |
||
80 | } |
||
81 |
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.