Code Duplication    Length = 7-10 lines in 2 locations

include/functions.php 2 locations

@@ 444-450 (lines=7) @@
441
        // first time to get configs for this module so read them all into an array
442
        $modOptions[$repmodule] = $modHelper->getConfig();
443
        // now return the specific config/option requested
444
        if (null == $option) { // return the array if no specific option was requested
445
            return $modOptions[$repmodule];
446
        } elseif (isset($modOptions[$repmodule][$option])) {
447
            return $modOptions[$repmodule][$option];
448
        } else {
449
            return null;
450
        }
451
    } else {
452
        // module options are in 'cache' so see if the one requested is valid
453
        if (null == $option) { // return the array if no specific option was requested
@@ 451-460 (lines=10) @@
448
        } else {
449
            return null;
450
        }
451
    } else {
452
        // module options are in 'cache' so see if the one requested is valid
453
        if (null == $option) { // return the array if no specific option was requested
454
            return $modOptions[$repmodule];
455
        } elseif (isset($modOptions[$repmodule][$option])) {
456
            return $modOptions[$repmodule][$option];
457
        } else {
458
            return null;
459
        }
460
    }
461
462
    return null;
463
/*