GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 11-14 lines in 5 locations

src/Query/Select.php 1 location

@@ 52-63 (lines=12) @@
49
     *
50
     * @throws InvalidArgumentException
51
     */
52
    public function setType($type)
53
    {
54
        if (! in_array($type, self::$types, true)) {
55
            throw new InvalidArgumentException(sprintf(
56
                '"%s" is not a valid type! Valid types: %s',
57
                $type,
58
                implode(', ', self::$types)
59
            ));
60
        }
61
62
        $this->type = $type;
63
    }
64
65
    /**
66
     * {@inheritdoc}

src/Query/GroupBy.php 1 location

@@ 54-65 (lines=12) @@
51
     *
52
     * @throws InvalidArgumentException
53
     */
54
    public function setType($type)
55
    {
56
        if (! in_array($type, self::$types, true)) {
57
            throw new InvalidArgumentException(sprintf(
58
                '"%s" is not a valid type! Valid types: %s',
59
                $type,
60
                implode(', ', self::$types)
61
            ));
62
        }
63
64
        $this->type = $type;
65
    }
66
}
67

src/Query/Having.php 1 location

@@ 47-58 (lines=12) @@
44
        return true;
45
    }
46
47
    public function setType($type)
48
    {
49
        if (! in_array($type, self::$types, true)) {
50
            throw new InvalidArgumentException(sprintf(
51
                '"%s" is not a valid type! Valid types: %s',
52
                $type,
53
                implode(', ', self::$types)
54
            ));
55
        }
56
57
        $this->type = $type;
58
    }
59
}
60

src/Query/Join.php 1 location

@@ 67-80 (lines=14) @@
64
     *
65
     * @return $this
66
     */
67
    public function setType($type)
68
    {
69
        if (! in_array($type, self::$types, true)) {
70
            throw new InvalidArgumentException(sprintf(
71
                '"%s" is not a valid type! Valid types: %s',
72
                $type,
73
                implode(', ', self::$types)
74
            ));
75
        }
76
77
        $this->type = $type;
78
79
        return $this;
80
    }
81
82
    /**
83
     * {@inheritdoc}

src/Specification.php 1 location

@@ 114-124 (lines=11) @@
111
     *
112
     * @return $this
113
     */
114
    protected function setType($type)
115
    {
116
        if (! in_array($type, self::$types, true)) {
117
            $message = sprintf('"%s" is not a valid type! Valid types: %s', $type, implode(', ', self::$types));
118
            throw new InvalidArgumentException($message);
119
        }
120
121
        $this->type = $type;
122
123
        return $this;
124
    }
125
}
126