Code Duplication    Length = 4-4 lines in 2 locations

api/v1/index.php 1 location

@@ 5-8 (lines=4) @@
2
require_once('class.FlipREST.php');
3
require_once('class.AuthProvider.php');
4
5
if($_SERVER['REQUEST_URI'][0] == '/' && $_SERVER['REQUEST_URI'][1] == '/')
6
{
7
    $_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 1);
8
}
9
10
require('login.php');
11
require('users.php');

oauth/index.php 1 location

@@ 5-8 (lines=4) @@
2
require_once('class.FlipREST.php');
3
require_once('class.AuthProvider.php');
4
5
if($_SERVER['REQUEST_URI'][0] == '/' && $_SERVER['REQUEST_URI'][1] == '/')
6
{
7
    $_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 1);
8
}
9
10
$app = new FlipREST();
11
$app->get('/authorize', 'oauth_login');