| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 70 | public function newInstance() |
||
| 71 | { |
||
| 72 | $html = new HtmlEscaper($this->flags, $this->encoding); |
||
| 73 | $attr = new AttrEscaper($html, $this->encoding); |
||
| 74 | $css = new CssEscaper($this->encoding); |
||
| 75 | $js = new JsEscaper($this->encoding); |
||
| 76 | return new Escaper($html, $attr, $css, $js); |
||
| 77 | } |
||
| 78 | } |
||
| 79 |
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.