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

src/Traits/SaveRevisionJsonRepresentation.php 2 locations

@@ 141-149 (lines=9) @@
138
            $accessor = $this->{$relation}()->getPivotAccessor();
139
            $pivot = $model->{$accessor};
140
141
            foreach ($model->getRawOriginal() as $field => $value) {
142
                $data = $this->dataWithForeignKeys(
143
                    $data, $model->getKeyName(), $this->getForeignKey()
144
                );
145
146
                $data = $this->dataWithAttributeValue(
147
                    $data, $model->getAttributes(), $index, $field, $value
148
                );
149
            }
150
151
            foreach ($pivot->getRawOriginal() as $field => $value) {
152
                $data = $this->dataWithPivotForeignKeys(
@@ 151-159 (lines=9) @@
148
                );
149
            }
150
151
            foreach ($pivot->getRawOriginal() as $field => $value) {
152
                $data = $this->dataWithPivotForeignKeys(
153
                    $data, $pivot->getKeyName(), $pivot->getForeignKey(), $pivot->getRelatedKey()
154
                );
155
156
                $data = $this->dataWithPivotAttributeValue(
157
                    $data, $pivot->getAttributes(), $index, $field, $value
158
                );
159
            }
160
        }
161
162
        return $data;