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

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