Code Duplication    Length = 5-5 lines in 2 locations

src/delivery/web/fields/ActionField.php 2 locations

@@ 49-53 (lines=5) @@
46
47
        $body = [];
48
49
        if ($action->description()) {
50
            $body[] = new Element('div', ['class' => 'well'], [
51
                $action->description()
52
            ]);
53
        }
54
55
        foreach ($action->parameters() as $parameter) {
56
            $value = $this->get($parameter, $values);
@@ 82-86 (lines=5) @@
79
            ]);
80
        }
81
82
        if ($error) {
83
            $formGroup[] = new Element('div', ['class' => 'alert alert-danger'], [
84
                $error->getMessage()
85
            ]);
86
        }
87
88
        $field = $this->fields->getField($parameter);
89