Code Duplication    Length = 5-5 lines in 2 locations

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

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

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

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