Code Duplication    Length = 13-15 lines in 2 locations

Classes/Module/ModuleLoader.php 2 locations

@@ 467-481 (lines=15) @@
464
    /**
465
     * @return string
466
     */
467
    protected function getIcon()
468
    {
469
        $moduleConfiguration = $this->getExistingMainConfiguration();
470
471
472
        if ($this->icon) {
473
            $icon = $this->icon;
474
        } elseif ($moduleConfiguration['icon']) { // existing configuration may override.
475
            $icon = $moduleConfiguration['icon'];
476
        } else {
477
            $icon = ''; //default value.
478
        }
479
480
        return $icon;
481
    }
482
483
    /**
484
     * @param string $mainModule
@@ 947-959 (lines=13) @@
944
    /**
945
     * @return string
946
     */
947
    protected function getAccess()
948
    {
949
        $moduleConfiguration = $this->getExistingMainConfiguration();
950
951
        if ($this->access !== null) {
952
            $access = $this->access;
953
        } elseif ($moduleConfiguration['access']) { // existing configuration may override.
954
            $access = $moduleConfiguration['access'];
955
        } else {
956
            $access = Access::USER; //default value.
957
        }
958
        return $access;
959
    }
960
961
    /**
962
     * @param string $access