Code Duplication    Length = 15-16 lines in 2 locations

modules/user/controllers/AuthController.php 1 location

@@ 32-47 (lines=16) @@
29
    /**
30
     * @inheritdoc
31
     */
32
    public function behaviors()
33
    {
34
        return [
35
            'access' => [
36
                'class' => AccessControl::className(),
37
                'only' => ['registration', 'recovery'],
38
                'rules' => [
39
                    [
40
                        'actions' => ['registration', 'recovery'],
41
                        'allow' => true,
42
                        'roles' => ['?'],
43
                    ],
44
                ],
45
            ],
46
        ];
47
    }
48
49
    /**
50
     * @inheritdoc

modules/user/controllers/DefaultController.php 1 location

@@ 29-43 (lines=15) @@
26
    /**
27
     * @inheritdoc
28
     */
29
    public function behaviors()
30
    {
31
        return [
32
            'access' => [
33
                'class' => AccessControl::className(),
34
                'rules' => [
35
                    [
36
                        'allow' => true,
37
                        'actions' => ['profile', 'update', 'send-change-password-mail', 'change-password'],
38
                        'roles' => ['@'],
39
                    ],
40
                ]
41
            ],
42
        ];
43
    }
44
45
    /**
46
     * Display user profile