Code Duplication    Length = 9-9 lines in 2 locations

src/Parser/Internal/AbstractCommandDocBlockParser.php 1 location

@@ 174-182 (lines=9) @@
171
        $this->commandInfo->setAliases((string)$tag->getDescription());
172
    }
173
174
    protected function lastParameterName()
175
    {
176
        $params = $this->commandInfo->getParameters();
177
        $param = end($params);
178
        if (!$param) {
179
            return '';
180
        }
181
        return $param->name;
182
    }
183
184
    /**
185
     * Return the name of the last parameter if it holds the options.

src/Parser/Internal/BespokeDocBlockParser.php 1 location

@@ 245-253 (lines=9) @@
242
        }
243
    }
244
245
    protected function lastParameterName()
246
    {
247
        $params = $this->commandInfo->getParameters();
248
        $param = end($params);
249
        if (!$param) {
250
            return '';
251
        }
252
        return $param->name;
253
    }
254
255
    /**
256
     * Return the name of the last parameter if it holds the options.