Code Duplication    Length = 12-12 lines in 3 locations

src/UI/Help/AbstractHelp.php 3 locations

@@ 64-75 (lines=12) @@
61
     * @param BlockLayout $layout    The layout.
62
     * @param Argument[]  $arguments The arguments to render.
63
     */
64
    protected function renderArguments(BlockLayout $layout, array $arguments)
65
    {
66
        $layout->add(new Paragraph('<b>ARGUMENTS</b>'));
67
        $layout->beginBlock();
68
69
        foreach ($arguments as $argument) {
70
            $this->renderArgument($layout, $argument);
71
        }
72
73
        $layout->endBlock();
74
        $layout->add(new EmptyLine());
75
    }
76
77
    /**
78
     * Renders an argument.
@@ 102-113 (lines=12) @@
99
     * @param BlockLayout $layout  The layout.
100
     * @param Option[]    $options The options to render.
101
     */
102
    protected function renderOptions(BlockLayout $layout, array $options)
103
    {
104
        $layout->add(new Paragraph('<b>OPTIONS</b>'));
105
        $layout->beginBlock();
106
107
        foreach ($options as $option) {
108
            $this->renderOption($layout, $option);
109
        }
110
111
        $layout->endBlock();
112
        $layout->add(new EmptyLine());
113
    }
114
115
    /**
116
     * Renders a list of global options.
@@ 121-132 (lines=12) @@
118
     * @param BlockLayout $layout  The layout.
119
     * @param Option[]    $options The global options to render.
120
     */
121
    protected function renderGlobalOptions(BlockLayout $layout, array $options)
122
    {
123
        $layout->add(new Paragraph('<b>GLOBAL OPTIONS</b>'));
124
        $layout->beginBlock();
125
126
        foreach ($options as $option) {
127
            $this->renderOption($layout, $option);
128
        }
129
130
        $layout->endBlock();
131
        $layout->add(new EmptyLine());
132
    }
133
134
    /**
135
     * Renders an option.