Code Duplication    Length = 3-4 lines in 2 locations

src/delivery/cli/CliApplication.php 2 locations

@@ 174-177 (lines=4) @@
171
172
        $i = 1;
173
        $actionIds = [];
174
        foreach ($this->actions->getAllActions() as $id => $action) {
175
            $console->writeLine($i++ . " - " . $action->caption() . $this->shortDescription($action));
176
            $actionIds[] = $id;
177
        }
178
179
        $console->writeLine();
180
        $actionIndex = $console->read('Action: ');
@@ 210-212 (lines=3) @@
207
        $console->writeLine('Available Actions');
208
        $console->writeLine('~~~~~~~~~~~~~~~~~');
209
210
        foreach ($this->actions->getAllActions() as $id => $action) {
211
            $console->writeLine($id . ' - ' . $action->caption() . $this->shortDescription($action));
212
        }
213
    }
214
215
    private function registerFields(ParameterReader $reader) {