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

@@ 258-266 (lines=9) @@
255
        }
256
    }
257
258
    protected function lastParameterName()
259
    {
260
        $params = $this->commandInfo->getParameters();
261
        $param = end($params);
262
        if (!$param) {
263
            return '';
264
        }
265
        return $param->name;
266
    }
267
268
    /**
269
     * Return the name of the last parameter if it holds the options.