Code Duplication    Length = 5-5 lines in 2 locations

src/system/RoutesModule/Form/Handler/Common/Base/AbstractEditHandler.php 1 location

@@ 436-440 (lines=5) @@
433
    public function handleCommand($args = [])
434
    {
435
        // build $args for BC (e.g. used by redirect handling)
436
        foreach ($this->templateParameters['actions'] as $action) {
437
            if ($this->form->get($action['id'])->isClicked()) {
438
                $args['commandName'] = $action['id'];
439
            }
440
        }
441
        if ($this->form->get('cancel')->isClicked()) {
442
            $args['commandName'] = 'cancel';
443
        }

src/system/RoutesModule/Form/Handler/Route/Base/AbstractEditHandler.php 1 location

@@ 148-152 (lines=5) @@
145
        }
146
    
147
        // build $args for BC (e.g. used by redirect handling)
148
        foreach ($this->templateParameters['actions'] as $action) {
149
            if ($this->form->get($action['id'])->isClicked()) {
150
                $args['commandName'] = $action['id'];
151
            }
152
        }
153
        if ($this->form->get('cancel')->isClicked()) {
154
            $args['commandName'] = 'cancel';
155
        }