| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | View Code Duplication | public function __construct( |
|
| 43 | ConfigResolverInterface $configResolver, |
||
| 44 | TranslationHelper $translationHelper, |
||
| 45 | FieldHelper $fieldHelper, |
||
| 46 | Environment $twig |
||
| 47 | ) { |
||
| 48 | $this->configResolver = $configResolver; |
||
| 49 | $this->config = $this->configResolver->getParameter('action_config', 'netgen_information_collection')[EmailAction::$defaultName]; |
||
| 50 | $this->translationHelper = $translationHelper; |
||
| 51 | $this->fieldHelper = $fieldHelper; |
||
| 52 | $this->twig = $twig; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.