Code Duplication    Length = 7-7 lines in 2 locations

src/Command/JScan.php 1 location

@@ 68-74 (lines=7) @@
65
    {
66
        $options = [];
67
        if (!empty($arguments)) {
68
            if (
69
                !$this->checkFixedArray($arguments, count($arguments) > 1 ? 2 : 1) ||
70
                !is_numeric($arguments[0]) ||
71
                (isset($arguments[1]) && !is_array($arguments[1]))
72
            ) {
73
                throw new InvalidCommandArgumentException($this, $arguments);
74
            }
75
76
            if (isset($arguments[1])) {
77
                $options = $arguments[1];

src/Command/QScan.php 1 location

@@ 68-74 (lines=7) @@
65
    {
66
        $options = [];
67
        if (!empty($arguments)) {
68
            if (
69
                !$this->checkFixedArray($arguments, count($arguments) > 1 ? 2 : 1) ||
70
                !is_numeric($arguments[0]) ||
71
                (isset($arguments[1]) && !is_array($arguments[1]))
72
            ) {
73
                throw new InvalidCommandArgumentException($this, $arguments);
74
            }
75
76
            if (isset($arguments[1])) {
77
                $options = $arguments[1];