| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function addTransformer(DataTransformerInterface $transformer, $viewNamespace, $outputFormat) |
||
| 26 | { |
||
| 27 | if (!array_key_exists($viewNamespace, $this->viewsReferenceTransformers)) { |
||
| 28 | $this->viewsReferenceTransformers[$viewNamespace] = []; |
||
| 29 | } |
||
| 30 | if (!array_key_exists($outputFormat, $this->viewsReferenceTransformers[$viewNamespace])) { |
||
| 31 | $this->viewsReferenceTransformers[$viewNamespace][$outputFormat] = null; |
||
| 32 | } |
||
| 33 | $this->viewsReferenceTransformers[$viewNamespace][$outputFormat] = $transformer; |
||
| 34 | } |
||
| 35 | |||
| 52 |
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.