Code Duplication    Length = 9-9 lines in 2 locations

src/Params/InputParam.php 2 locations

@@ 139-147 (lines=9) @@
136
     */
137
    public function getValue()
138
    {
139
        if ($this->type == self::TYPE_GET) {
140
            if (!filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) {
141
                return $_GET[$this->key];
142
            }
143
            if ($this->isMulti()) {
144
                return filter_input(INPUT_GET, $this->key, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
145
            }
146
            return filter_input(INPUT_GET, $this->key);
147
        }
148
        if ($this->type == self::TYPE_POST) {
149
            if (!filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) {
150
                return $_POST[$this->key];
@@ 148-156 (lines=9) @@
145
            }
146
            return filter_input(INPUT_GET, $this->key);
147
        }
148
        if ($this->type == self::TYPE_POST) {
149
            if (!filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) {
150
                return $_POST[$this->key];
151
            }
152
            if ($this->isMulti()) {
153
                return filter_input(INPUT_POST, $this->key, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
154
            }
155
            return filter_input(INPUT_POST, $this->key);
156
        }
157
        if ($this->type == self::TYPE_FILE) {
158
            if (isset($_FILES[$this->key])) {
159
                if ($this->isMulti()) {