Code Duplication    Length = 8-8 lines in 2 locations

register.php 1 location

@@ 27-34 (lines=8) @@
24
$captcha = new \Flipside\FlipsideCAPTCHA();
25
\Flipside\FlipSession::setVar('captcha', $captcha);
26
27
if(isset($_GET['return']))
28
{
29
    $return = '<input type="hidden" name="return" value="'.$_GET['return'].'"/>';
30
}
31
else
32
{
33
    $return = '';
34
}
35
36
if(\Flipside\FlipSession::isLoggedIn())
37
{

login.php 1 location

@@ 20-27 (lines=8) @@
17
    }
18
}
19
20
if(isset($_GET['return']))
21
{
22
    $return = '<input type="hidden" name="return" value="'.$_GET['return'].'"/>';
23
}
24
else
25
{
26
    $return = '';
27
}
28
if(isset($_GET['failed']))
29
{
30
    $page->addNotification('Login Failed! <a href="'.$page->resetUrl.'" class="alert-link">Click here to reset your password.</a>', $page::NOTIFICATION_FAILED);