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 = 8-8 lines in 2 locations

src/Eloquent/Model.php 2 locations

@@ 142-149 (lines=8) @@
139
     *
140
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
141
     */
142
    public function hasOne($related, $foreignKey = null, $localKey = null)
143
    {
144
        $foreignKey = $foreignKey ?: $this->getForeignKey();
145
        $instance = new $related();
146
        $localKey = $localKey ?: $this->getKeyName();
147
148
        return new HasOne($instance->newQuery(), $this, $foreignKey, $localKey);
149
    }
150
151
    /**
152
     * Define a one-to-many relationship.
@@ 160-167 (lines=8) @@
157
     *
158
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
159
     */
160
    public function hasMany($related, $foreignKey = null, $localKey = null)
161
    {
162
        $foreignKey = $foreignKey ?: $this->getForeignKey();
163
        $instance = new $related();
164
        $localKey = $localKey ?: $this->getKeyName();
165
166
        return new HasMany($instance->newQuery(), $this, $foreignKey, $localKey);
167
    }
168
}
169