These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Onurb\Bundle\YumlBundle\Controller; |
||
4 | |||
5 | use Onurb\Bundle\YumlBundle\Yuml\YumlClient; |
||
6 | use Onurb\Bundle\YumlBundle\Yuml\YumlClientInterface; |
||
7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
||
8 | |||
9 | /** |
||
10 | * Utility to generate Yuml compatible strings from metadata graphs |
||
11 | * Adaptation of DoctrineORMModule\Yuml\YumlController for ZendFramework-Zend-Developer-Tools |
||
12 | * |
||
13 | * @license MIT |
||
14 | * @link http://www.doctrine-project.org/ |
||
15 | * @author Bruno Heron <[email protected]> |
||
16 | * @author Marco Pivetta <[email protected]> |
||
17 | */ |
||
18 | class YumlController extends Controller |
||
19 | { |
||
20 | /** |
||
21 | * @param YumlClientInterface|null $yumlClient |
||
0 ignored issues
–
show
|
|||
22 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
||
23 | */ |
||
24 | 1 | public function indexAction() |
|
25 | { |
||
26 | 1 | $yumlClient = $this->get('onurb_yuml.client'); |
|
27 | |||
28 | 1 | $showDetailParam = $this->container->getParameter('onurb_yuml.show_fields_description'); |
|
29 | 1 | $colorsParam = $this->container->getParameter('onurb_yuml.colors'); |
|
30 | 1 | $notesParam = $this->container->getParameter('onurb_yuml.notes'); |
|
31 | |||
32 | 1 | return $this->redirect( |
|
33 | 1 | $yumlClient->getGraphUrl( |
|
34 | 1 | $yumlClient->makeDslText($showDetailParam, $colorsParam, $notesParam) |
|
35 | ) |
||
36 | ); |
||
37 | } |
||
38 | } |
||
39 |
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.