Code Duplication    Length = 10-10 lines in 2 locations

src/Model/Entity/User.php 2 locations

@@ 64-73 (lines=10) @@
61
     *
62
     * @return  string
63
     */
64
    protected function _getActivationUrl()
65
    {
66
        return Router::url([
67
            'controller' => 'Users',
68
            'action'     => 'activate',
69
            'plugin'     => 'Community',
70
            $this->id,
71
            $this->token
72
        ], true);
73
    }
74
75
    /**
76
     * set virtual field setup_password_url
@@ 80-89 (lines=10) @@
77
     *
78
     * @return string
79
     */
80
    protected function _getSetupPasswordUrl()
81
    {
82
        return Router::url([
83
            'controller' => 'Users',
84
            'plugin'     => 'Community',
85
            'action'     => 'setupPassword',
86
            $this->id,
87
            $this->token
88
        ], true);
89
    }
90
91
    /**
92
     * Setup password.