| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function __construct( |
||
| 53 | \Swift_Mailer $mailer, |
||
| 54 | EngineInterface $templating, |
||
| 55 | $from, |
||
| 56 | $to, |
||
| 57 | $subject, |
||
| 58 | $template |
||
| 59 | ){ |
||
| 60 | $this->mailer = $mailer; |
||
| 61 | $this->templating = $templating; |
||
| 62 | $this->from = $from; |
||
| 63 | $this->to = $to; |
||
| 64 | $this->subject = $subject; |
||
| 65 | $this->template = $template; |
||
| 66 | } |
||
| 67 | |||
| 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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.