Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 511-515 (lines=5) @@
508
    public function handleCommand($args = [])
509
    {
510
        // build $args for BC (e.g. used by redirect handling)
511
        foreach ($this->templateParameters['actions'] as $action) {
512
            if ($this->form->get($action['id'])->isClicked()) {
513
                $args['commandName'] = $action['id'];
514
            }
515
        }
516
        if ($this->form->get('cancel')->isClicked()) {
517
            $args['commandName'] = 'cancel';
518
        }

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

@@ 157-161 (lines=5) @@
154
        }
155
    
156
        // build $args for BC (e.g. used by redirect handling)
157
        foreach ($this->templateParameters['actions'] as $action) {
158
            if ($this->form->get($action['id'])->isClicked()) {
159
                $args['commandName'] = $action['id'];
160
            }
161
        }
162
        if ($this->form->get('cancel')->isClicked()) {
163
            $args['commandName'] = 'cancel';
164
        }