dinel / metadiscourse-annotator

0 stars 0 forks source link

[Insight] Object parameters should be type hinted - in src/…/WebAnnotatorController.php, line 340 #57

Open dinel opened 6 years ago

dinel commented 6 years ago

in src/AppBundle/Controller/WebAnnotatorController.php, line 340

The parameter value, which is an object, should be typehinted.

                                                      $this->getDoctrine()->getEntityManager());
            $context = $context_l[0] 
                    . " <b>" . $token->getContent() . "</b> "
                    . $context_l[2];

            $a_senses  = $senses->map(function($value) {
                return array($value->getId(), $value->getDefinition(), $value->getExplanation());
            });

            // check whether there is already annotation
            $annotation = $this->getAnnotation($id_token);

Posted from SensioLabsInsight