Code Duplication    Length = 3-4 lines in 2 locations

module/Applications/src/Applications/Mail/NewApplication.php 1 location

@@ 70-73 (lines=4) @@
67
        if (!is_array($options)) {
68
            $this->router = $options;
69
            $options = [];
70
        } else if (isset($options['router'])) {
71
            $this->router = $options['router'];
72
            unset($options['router']);
73
        }
74
75
        if (!$this->router) {
76
            throw new MissingDependencyException('Router', $this);

module/Core/src/Core/Form/Form.php 1 location

@@ 218-220 (lines=3) @@
215
            $this->setIsDescriptionsEnabled($options['enable_descriptions']);
216
        }
217
218
        if (!isset($options['description']) && null !== $desc) {
219
            $this->options['description'] = $desc;
220
        }
221
        return $this;
222
    }
223