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

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