Code Duplication    Length = 3-4 lines in 2 locations

src/delivery/cli/CliApplication.php 2 locations

@@ 168-171 (lines=4) @@
165
166
        $i = 1;
167
        $actionIds = [];
168
        foreach ($this->actions->getAllActions() as $id => $action) {
169
            $console->writeLine($i++ . " - " . $action->caption() . $this->shortDescription($action));
170
            $actionIds[] = $id;
171
        }
172
173
        $console->writeLine();
174
        $actionIndex = $console->read('Action: ');
@@ 204-206 (lines=3) @@
201
        $console->writeLine('Available Actions');
202
        $console->writeLine('~~~~~~~~~~~~~~~~~');
203
204
        foreach ($this->actions->getAllActions() as $id => $action) {
205
            $console->writeLine($id . ' - ' . $action->caption() . $this->shortDescription($action));
206
        }
207
    }
208
209
    private function registerFields(ParameterReader $reader) {