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

@@ 491-508 (lines=18) @@
488
        if (isset($_POST['redirects'])) {
489
            $all = 0;
490
            $added = 0;
491
            if (isset($_POST['redirects']['static']) && !empty($_POST['redirects']['static'])) {
492
                $static = explode("\n", $_POST['redirects']['static']);
493
                foreach ($static as $redirectStr) {
494
                    $all++;
495
                    $r = explode("\t", $redirectStr);
496
                    $redirect = new Redirect(
497
                        [
498
                            'type' => Redirect::TYPE_STATIC,
499
                            'from' => trim($r[0]),
500
                            'to' => trim($r[1]),
501
                            'active' => true,
502
                        ]
503
                    );
504
                    if ($redirect->save()) {
505
                        $added++;
506
                    }
507
                }
508
            }
509
            if (isset($_POST['redirects']['regular']) && !empty($_POST['redirects']['regular'])) {
510
                $regular = explode("\n", $_POST['redirects']['regular']);
511
                foreach ($regular as $redirectStr) {
@@ 509-526 (lines=18) @@
506
                    }
507
                }
508
            }
509
            if (isset($_POST['redirects']['regular']) && !empty($_POST['redirects']['regular'])) {
510
                $regular = explode("\n", $_POST['redirects']['regular']);
511
                foreach ($regular as $redirectStr) {
512
                    $all++;
513
                    $r = explode("\t", $redirectStr);
514
                    $redirect = new Redirect(
515
                        [
516
                            'type' => Redirect::TYPE_PREG,
517
                            'from' => trim($r[0]),
518
                            'to' => trim($r[1]),
519
                            'active' => true,
520
                        ]
521
                    );
522
                    if ($redirect->save()) {
523
                        $added++;
524
                    }
525
                }
526
            }
527
528
            Yii::$app->session->setFlash('success', Yii::t('app', 'Records has been saved'));
529
            $returnUrl = Yii::$app->request->get('returnUrl', ['/redirect']);