Code Duplication    Length = 3-3 lines in 2 locations

src/Visitor/Php/Symfony/FormTypeHelp.php 1 location

@@ 58-60 (lines=3) @@
55
56
        if ($helpNode->value instanceof Node\Scalar\String_) {
57
            $line = $helpNode->value->getAttribute('startLine');
58
            if (null !== $location = $this->getLocation($helpNode->value->value, $line, $helpNode, ['domain' => $domain])) {
59
                $this->lateCollect($location);
60
            }
61
        } else {
62
            $this->addError($helpNode, 'Form help is not a scalar string');
63
        }

src/Visitor/Php/Symfony/FormTypePlaceholder.php 1 location

@@ 71-73 (lines=3) @@
68
69
        if ($placeholderNode->value instanceof Node\Scalar\String_) {
70
            $line = $placeholderNode->value->getAttribute('startLine');
71
            if (null !== $location = $this->getLocation($placeholderNode->value->value, $line, $placeholderNode, ['domain' => $domain])) {
72
                $this->lateCollect($location);
73
            }
74
        } elseif ($placeholderNode->value instanceof Node\Expr\ConstFetch && 'false' === $placeholderNode->value->name->toString()) {
75
            // 'placeholder' => false,
76
            // Do noting