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/Traits/SaveRevisionJsonRepresentation.php 2 locations

@@ 234-241 (lines=8) @@
231
     * @param string|int|null $value
232
     * @return array
233
     */
234
    protected function dataWithAttributeValue(array $data, array $attributes, int $index, string $field, $value = null): array
235
    {
236
        if (array_key_exists($field, $attributes)) {
237
            $data['records']['items'][$index][$field] = $value;
238
        }
239
240
        return $data;
241
    }
242
243
    /**
244
     * Build the data array with each pivoted attribute<->value set for the given model.
@@ 253-260 (lines=8) @@
250
     * @param string|int|null $value
251
     * @return array
252
     */
253
    protected function dataWithPivotAttributeValue(array $data, array $attributes, int $index, string $field, $value = null): array
254
    {
255
        if (array_key_exists($field, $attributes)) {
256
            $data['pivots']['items'][$index][$field] = $value;
257
        }
258
259
        return $data;
260
    }
261
262
    /**
263
     * Get the relations that should be revisionable alongside the original model.