Code Duplication    Length = 13-13 lines in 2 locations

src/Parser/Internal/CommandDocBlockParser2.php 1 location

@@ 83-95 (lines=13) @@
80
    /**
81
     * Store the data from a @param annotation in our argument descriptions.
82
     */
83
    protected function processParamTag($tag)
84
    {
85
        if (!$tag instanceof ParamTag) {
86
            return;
87
        }
88
        $variableName = $tag->getVariableName();
89
        $variableName = str_replace('$', '', $variableName);
90
        $description = static::removeLineBreaks($tag->getDescription());
91
        if ($variableName == $this->commandInfo->optionParamName()) {
92
            return;
93
        }
94
        $this->commandInfo->arguments()->add($variableName, $description);
95
    }
96
97
    /**
98
     * Store the data from a @return annotation in our argument descriptions.

src/Parser/Internal/CommandDocBlockParser3.php 1 location

@@ 96-108 (lines=13) @@
93
    /**
94
     * Store the data from a @param annotation in our argument descriptions.
95
     */
96
    protected function processParamTag($tag)
97
    {
98
        if (!$tag instanceof Param) {
99
            return;
100
        }
101
        $variableName = $tag->getVariableName();
102
        $variableName = str_replace('$', '', $variableName);
103
        $description = static::removeLineBreaks((string)$tag->getDescription());
104
        if ($variableName == $this->commandInfo->optionParamName()) {
105
            return;
106
        }
107
        $this->commandInfo->arguments()->add($variableName, $description);
108
    }
109
110
    /**
111
     * Store the data from a @return annotation in our argument descriptions.