Code Duplication    Length = 10-10 lines in 2 locations

src/Model/Entity/User.php 2 locations

@@ 86-95 (lines=10) @@
83
     *
84
     * @return  string
85
     */
86
    protected function _getActivationUrl()
87
    {
88
        return Router::url([
89
            'controller' => 'Users',
90
            'action'     => 'activate',
91
            'plugin'     => 'Community',
92
            $this->id,
93
            $this->token
94
        ], true);
95
    }
96
97
    /**
98
     * set virtual field setup_password_url
@@ 102-111 (lines=10) @@
99
     *
100
     * @return string
101
     */
102
    protected function _getSetupPasswordUrl()
103
    {
104
        return Router::url([
105
            'controller' => 'Users',
106
            'plugin'     => 'Community',
107
            'action'     => 'setupPassword',
108
            $this->id,
109
            $this->token
110
        ], true);
111
    }
112
113
    /**
114
     * Setup password.