Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Front/Feedback.php 1 location

@@ 44-46 (lines=3) @@
41
    {
42
        // get configs
43
        $configs = $this->getConfigs();
44
        if (!App::$User->isAuth() && (int)$configs['guestAdd'] !== 1) {
45
            throw new ForbiddenException(__('Feedback available only for authorized users'));
46
        }
47
48
        // initialize model
49
        $model = new FormFeedbackAdd((int)$configs['useCaptcha'] === 1);

Apps/Controller/Front/Profile.php 1 location

@@ 121-123 (lines=3) @@
118
    public function actionShow($userId)
119
    {
120
        $cfg = Serialize::decode($this->application->configs);
121
        if ((int)$cfg['guestView'] !== 1 && !App::$User->isAuth()) {
122
            throw new ForbiddenException(__('You must login to view other profile'));
123
        }
124
        // check if target exists
125
        if (!App::$User->isExist($userId)) {
126
            throw new NotFoundException(__('This profile is not exist'));