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

application/modules/seo/SeoModule.php 2 locations

@@ 116-124 (lines=9) @@
113
        $type = Yii::$app->getModule('seo')->redirectWWW;
114
        if ($type != self::NO_REDIRECT) {
115
            $readirArr = [
116
                self::FROM_WITHOUT_WWW => function () {
117
                    if (preg_match('#^(http|https):\/\/www\.#i', Yii::$app->request->hostInfo) === 0) {
118
                        Yii::$app->response->redirect(
119
                            str_replace('://', '://www.', Yii::$app->request->absoluteUrl),
120
                            301
121
                        );
122
                        Yii::$app->end();
123
                    }
124
                },
125
                self::FROM_WWW => function () {
126
                    if (preg_match('#^(http|https):\/\/www\.#i', Yii::$app->request->hostInfo) === 1) {
127
                        Yii::$app->response->redirect(
@@ 125-133 (lines=9) @@
122
                        Yii::$app->end();
123
                    }
124
                },
125
                self::FROM_WWW => function () {
126
                    if (preg_match('#^(http|https):\/\/www\.#i', Yii::$app->request->hostInfo) === 1) {
127
                        Yii::$app->response->redirect(
128
                            str_replace('://www.', '://', Yii::$app->request->absoluteUrl),
129
                            301
130
                        );
131
                        Yii::$app->end();
132
                    }
133
                },
134
            ];
135
            $readirArr[$type]();
136
        }