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

application/extensions/demo/migrations/m150605_094805_demo_data.php 2 locations

@@ 250-260 (lines=11) @@
247
                }
248
                // images
249
                $prodPhotos = [];
250
                if (isset($product['photos'])) {
251
                    foreach ($product['photos'] as $photo) {
252
                        $prodPhotos[] = [
253
                            $productObject->id,
254
                            $productId,
255
                            $photo['name'],
256
                            $product['name'],
257
                            $product['name'],
258
                        ];
259
                    }
260
                }
261
                if (isset($product['mainPhoto']['name'])) {
262
                    $prodPhotos[] = [
263
                        $productObject->id,
@@ 261-269 (lines=9) @@
258
                        ];
259
                    }
260
                }
261
                if (isset($product['mainPhoto']['name'])) {
262
                    $prodPhotos[] = [
263
                        $productObject->id,
264
                        $productId,
265
                        $product['mainPhoto']['name'],
266
                        $product['name'],
267
                        $product['name'],
268
                    ];
269
                }
270
                if (count($prodPhotos) > 0) {
271
                    $this->batchInsert(
272
                        Image::tableName(),