| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function getViewReferenceTransformer($viewNamespace, $outputFormat = 'xml') |
||
| 43 | { |
||
| 44 | switch (array_key_exists($viewNamespace, $this->viewsReferenceTransformers)) { |
||
| 45 | case true: |
||
| 46 | return $this->viewsReferenceTransformers[$viewNamespace][$outputFormat]; |
||
| 47 | case false: |
||
| 48 | return $this->viewsReferenceTransformers['Victoire\Bundle\PageBundle\Entity\BasePage'][$outputFormat]; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 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.