Code Duplication    Length = 3-3 lines in 2 locations

Apps/Controller/Front/Profile.php 1 location

@@ 487-489 (lines=3) @@
484
        }
485
486
        // check if target is defined
487
        if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) {
488
            throw new NotFoundException();
489
        }
490
491
        $user = App::$User->identity();
492

Apps/Controller/Api/Profile.php 1 location

@@ 512-514 (lines=3) @@
509
        }
510
511
        // check if passed user id is exist
512
        if (!Obj::isLikeInt($target_id) || $target_id < 1 || !App::$User->isExist($target_id)) {
513
            throw new NotFoundException('Wrong user info');
514
        }
515
516
        $cfg = \Apps\ActiveRecord\App::getConfigs('app', 'Profile');
517
        // check if rating is enabled for website