Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 501-505 (lines=5) @@
498
    public function handleCommand($args = [])
499
    {
500
        // build $args for BC (e.g. used by redirect handling)
501
        foreach ($this->templateParameters['actions'] as $action) {
502
            if ($this->form->get($action['id'])->isClicked()) {
503
                $args['commandName'] = $action['id'];
504
            }
505
        }
506
        if ($this->form->get('cancel')->isClicked()) {
507
            $args['commandName'] = 'cancel';
508
        }

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

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