Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 84-86 (lines=3) @@
81
82
        if ($placeholderNode->value instanceof Node\Scalar\String_) {
83
            $line = $placeholderNode->value->getAttribute('startLine');
84
            if (null !== $location = $this->getLocation($placeholderNode->value->value, $line, $placeholderNode, ['domain' => $domain])) {
85
                $this->lateCollect($location);
86
            }
87
        } elseif ($placeholderNode->value instanceof Node\Expr\ConstFetch && 'false' === $placeholderNode->value->name->toString()) {
88
            // 'placeholder' => false,
89
            // Do noting