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/shop/controllers/BackendGoogleFeedController.php 1 location

@@ 46-63 (lines=18) @@
43
    /**
44
     * @return \yii\web\Response
45
     */
46
    public function actionCreate()
47
    {
48
        BackgroundTasks::addTask(
49
            [
50
                'name' => 'google_merchants_generate',
51
                'description' => 'Creating YML file',
52
                'action' => 'shop/google-merchants/generate',
53
                'params' => '',
54
                'init_event' => 'shop/google_merchants',
55
            ],
56
            [
57
                'create_notification' => true,
58
            ]
59
        );
60
61
        Yii::$app->session->setFlash('success', 'Task has been created.');
62
        return $this->redirect(['settings']);
63
    }
64
65
66
}

application/modules/shop/controllers/BackendYmlController.php 1 location

@@ 74-91 (lines=18) @@
71
    /**
72
     * @return \yii\web\Response
73
     */
74
    public function actionCreate()
75
    {
76
        BackgroundTasks::addTask(
77
            [
78
                'name' => 'yml_generate',
79
                'description' => 'Creating YML file',
80
                'action' => 'shop/yml/generate',
81
                'params' => '',
82
                'init_event' => 'shop/yml',
83
            ],
84
            [
85
                'create_notification' => true,
86
            ]
87
        );
88
89
        Yii::$app->session->setFlash('success', 'Task has been created.');
90
        return $this->redirect(['settings']);
91
    }
92
93
    /**
94
     * @return Response