Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Api/Profile.php 1 location

@@ 532-534 (lines=3) @@
529
        }
530
531
        // check if passed user id is exist
532
        if (!Any::isInt($targetId) || $targetId < 1 || !App::$User->isExist($targetId)) {
533
            throw new NotFoundException('Wrong user info');
534
        }
535
536
        $cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile');
537
        // check if rating is enabled for website

Apps/Controller/Front/Profile/ActionUnblock.php 1 location

@@ 40-42 (lines=3) @@
37
        }
38
39
        // check if target is defined
40
        if (!Any::isInt($targetId) || $targetId < 1 || !App::$User->isExist($targetId)) {
41
            throw new NotFoundException();
42
        }
43
44
        $user = App::$User->identity();
45