Code Duplication    Length = 11-11 lines in 2 locations

src/NodeVisitor/NameStmtPrefixer.php 1 location

@@ 52-62 (lines=11) @@
49
     * @param callable                   $globalWhitelister
50
     * @param FullyQualifiedNameResolver $nameResolver
51
     */
52
    public function __construct(
53
        string $prefix,
54
        array $whitelist,
55
        callable $globalWhitelister,
56
        FullyQualifiedNameResolver $nameResolver
57
    ) {
58
        $this->prefix = $prefix;
59
        $this->whitelist = $whitelist;
60
        $this->globalWhitelister = $globalWhitelister;
61
        $this->nameResolver = $nameResolver;
62
    }
63
64
    /**
65
     * @inheritdoc

src/NodeVisitor/StringScalarPrefixer.php 1 location

@@ 51-61 (lines=11) @@
48
     * @param callable                   $globalWhitelister
49
     * @param FullyQualifiedNameResolver $nameResolver
50
     */
51
    public function __construct(
52
        string $prefix,
53
        array $whitelist,
54
        callable $globalWhitelister,
55
        FullyQualifiedNameResolver $nameResolver
56
    ) {
57
        $this->prefix = $prefix;
58
        $this->whitelist = $whitelist;
59
        $this->globalWhitelister = $globalWhitelister;
60
        $this->nameResolver = $nameResolver;
61
    }
62
63
    /**
64
     * @inheritdoc