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

src/Traits/HasDuplicates.php 2 locations

@@ 211-220 (lines=10) @@
208
            return $model;
209
        }
210
211
        foreach ($unique as $column) {
212
            $i = 1;
213
            $original = $value = $model->{$column};
214
215
            while (static::withoutGlobalScopes()->where($column, $value)->first()) {
216
                $value = $original.' ('.$i++.')';
217
218
                $model->{$column} = $value;
219
            }
220
        }
221
222
        return $model;
223
    }
@@ 263-272 (lines=10) @@
260
        }
261
262
        if (array_key_exists($relation, $unique)) {
263
            foreach ($unique[$relation] as $column) {
264
                $i = 1;
265
                $original = $value = $model->{$column};
266
267
                while ($model->where($column, $value)->first()) {
268
                    $value = $original.' ('.$i++.')';
269
270
                    $model->{$column} = $value;
271
                }
272
            }
273
        }
274
275
        return $model;