Code Duplication    Length = 8-8 lines in 2 locations

src/Weew/ConsoleArguments/Option.php 2 locations

@@ 201-208 (lines=8) @@
198
                ));
199
            }
200
201
            if ($this->isSingle() && ! is_scalar($value)) {
202
                throw new InvalidOptionValueException(s(
203
                    'Trying to set a non scalar value "%s" on option "%s" ' .
204
                    'that expects one scalar value.',
205
                    get_type($value),
206
                    $this->getNameOrAlias()
207
                ));
208
            }
209
210
            if ($this->isMultiple() && ! is_array($value)) {
211
                throw new InvalidOptionValueException(s(
@@ 210-217 (lines=8) @@
207
                ));
208
            }
209
210
            if ($this->isMultiple() && ! is_array($value)) {
211
                throw new InvalidOptionValueException(s(
212
                    'Trying to set a non array value "%s" on option "%s" ' .
213
                    'that expects multiple values.',
214
                    get_type($value),
215
                    $this->getNameOrAlias()
216
                ));
217
            }
218
        }
219
220
        $this->value = $value;