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

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