Code Duplication    Length = 3-8 lines in 4 locations

main/admin/index.php 2 locations

@@ 308-310 (lines=3) @@
305
306
if (api_is_platform_admin()) {
307
    // option only visible in development mode. Enable through code if required
308
    if (is_dir(api_get_path(SYS_TEST_PATH) . 'datafiller/')) {
309
        $items[] = array('url' => 'user_move_stats.php', 'label' => get_lang('MoveUserStats'));
310
    }
311
    $items[] = array('url' => 'career_dashboard.php', 'label' => get_lang('CareersAndPromotions'));
312
    $items[] = array('url' => 'extra_fields.php?type=session', 'label' => get_lang('ManageSessionFields'));
313
}
@@ 334-336 (lines=3) @@
331
    $items = array();
332
    $items[] = array('url' => 'special_exports.php', 'label' => get_lang('SpecialExports'));
333
    $items[] = array('url' => 'system_status.php', 'label' => get_lang('SystemStatus'));
334
    if (is_dir(api_get_path(SYS_TEST_PATH) . 'datafiller/')) {
335
        $items[] = array('url' => 'filler.php', 'label' => get_lang('DataFiller'));
336
    }
337
338
    $items[] = array('url' => 'archive_cleanup.php', 'label' => get_lang('ArchiveDirCleanup'));
339
    $items[] = array('url' => 'resource_sequence.php', 'label' => get_lang('ResourcesSequencing'));

src/Chamilo/CoreBundle/Controller/Admin/AdminController.php 2 locations

@@ 372-379 (lines=8) @@
369
        );
370
371
        if (api_is_platform_admin()) {
372
            if (is_dir(
373
                api_get_path(SYS_TEST_PATH).'datafiller/'
374
            )) { // option only visible in development mode. Enable through code if required
375
                $items[] = array(
376
                    'url' => $adminUrl.'user_move_stats.php',
377
                    'label' => get_lang('MoveUserStats'),
378
                );
379
            }
380
            $items[] = array(
381
                'url' => $adminUrl.'career_dashboard.php',
382
                'label' => get_lang('CareersAndPromotions'),
@@ 426-431 (lines=6) @@
423
                'url' => $adminUrl.'system_status.php',
424
                'label' => get_lang('SystemStatus'),
425
            );
426
            if (is_dir(api_get_path(SYS_TEST_PATH).'datafiller/')) {
427
                $items[] = array(
428
                    'url' => $adminUrl.'filler.php',
429
                    'label' => get_lang('DataFiller'),
430
                );
431
            }
432
            $items[] = array(
433
                'url' => $adminUrl.'archive_cleanup.php',
434
                'label' => get_lang('ArchiveDirCleanup'),