Code Duplication    Length = 8-8 lines in 2 locations

src/delivery/cli/fields/MultiField.php 1 location

@@ 47-54 (lines=8) @@
44
     * @param Parameter $parameter
45
     * @return string
46
     */
47
    public function getDescription(Parameter $parameter) {
48
        $out = [''];
49
        foreach ($this->getTypes($parameter) as $i => $option) {
50
            $out[] = '  ' . $i . ' - ' . $option;
51
        }
52
        $out[] = 'Type';
53
        return implode(PHP_EOL, $out);
54
    }
55
56
    /**
57
     * @param Parameter $optionParameter

src/delivery/cli/fields/EnumerationField.php 1 location

@@ 61-68 (lines=8) @@
58
     * @param Parameter $parameter
59
     * @return string
60
     */
61
    public function getDescription(Parameter $parameter) {
62
        $out = [''];
63
        foreach ($this->getType($parameter)->getOptions() as $i => $option) {
64
            $out[] = '  ' . $i . ' - ' . $option;
65
        }
66
        $out[] = 'Selection';
67
        return implode(PHP_EOL, $out);
68
    }
69
}