Code Duplication    Length = 14-15 lines in 2 locations

Alpha/Controller/CacheController.php 1 location

@@ 84-98 (lines=15) @@
81
     *
82
     * @since 1.0
83
     */
84
    public function __construct()
85
    {
86
        self::$logger = new Logger('CacheManager');
87
        self::$logger->debug('>>__construct()');
88
89
        $config = ConfigProvider::getInstance();
90
91
        // ensure that the super class constructor is called, indicating the rights group
92
        parent::__construct('Admin');
93
94
        $this->setTitle('Cache Manager');
95
        $this->dataDir = $config->get('app.file.store.dir').'cache/';
96
97
        self::$logger->debug('<<__construct');
98
    }
99
100
    /**
101
     * Handle GET requests.

Alpha/Controller/InstallController.php 1 location

@@ 77-90 (lines=14) @@
74
     *
75
     * @since 1.0
76
     */
77
    public function __construct()
78
    {
79
        self::$logger = new Logger('InstallController');
80
        self::$logger->debug('>>__construct()');
81
82
        $config = ConfigProvider::getInstance();
83
84
        parent::__construct('Public');
85
86
        // set up the title and meta details
87
        $this->setTitle('Installing '.$config->get('app.title'));
88
89
        self::$logger->debug('<<__construct');
90
    }
91
92
    /**
93
     * Handle GET requests.