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

application/modules/seo/controllers/ManageController.php 2 locations

@@ 474-491 (lines=18) @@
471
        if (isset($_POST['redirects'])) {
472
            $all = 0;
473
            $added = 0;
474
            if (isset($_POST['redirects']['static']) && !empty($_POST['redirects']['static'])) {
475
                $static = explode("\n", $_POST['redirects']['static']);
476
                foreach ($static as $redirectStr) {
477
                    $all++;
478
                    $r = explode("\t", $redirectStr);
479
                    $redirect = new Redirect(
480
                        [
481
                            'type' => Redirect::TYPE_STATIC,
482
                            'from' => trim($r[0]),
483
                            'to' => trim($r[1]),
484
                            'active' => true,
485
                        ]
486
                    );
487
                    if ($redirect->save()) {
488
                        $added++;
489
                    }
490
                }
491
            }
492
            if (isset($_POST['redirects']['regular']) && !empty($_POST['redirects']['regular'])) {
493
                $regular = explode("\n", $_POST['redirects']['regular']);
494
                foreach ($regular as $redirectStr) {
@@ 492-509 (lines=18) @@
489
                    }
490
                }
491
            }
492
            if (isset($_POST['redirects']['regular']) && !empty($_POST['redirects']['regular'])) {
493
                $regular = explode("\n", $_POST['redirects']['regular']);
494
                foreach ($regular as $redirectStr) {
495
                    $all++;
496
                    $r = explode("\t", $redirectStr);
497
                    $redirect = new Redirect(
498
                        [
499
                            'type' => Redirect::TYPE_PREG,
500
                            'from' => trim($r[0]),
501
                            'to' => trim($r[1]),
502
                            'active' => true,
503
                        ]
504
                    );
505
                    if ($redirect->save()) {
506
                        $added++;
507
                    }
508
                }
509
            }
510
511
            Yii::$app->session->setFlash('success', Yii::t('app', 'Records has been saved'));
512
            $returnUrl = Yii::$app->request->get('returnUrl', ['/redirect']);