Code Duplication    Length = 6-6 lines in 2 locations

src/class/Config.php 2 locations

@@ 288-293 (lines=6) @@
285
            $file = key($this->config);
286
        }
287
288
        if (!isset($this->config[$file])) {
289
            throw new Exception(
290
                'The file '.$file.' has not been found for config '.$key,
291
                $this::ERR_FILE_NOT_FOUND
292
            );
293
        }
294
295
        $config = (array) $this->config[$file];
296
        if (!array_key_exists($key, $config)) {
@@ 129-134 (lines=6) @@
126
     */
127
    public function getConfigByFilename($filename)
128
    {
129
        if (!isset($this->config[$filename])) {
130
            throw new Exception(
131
                'The file '.$filename.' has not been found',
132
                $this::ERR_FILE_NOT_FOUND
133
            );
134
        }
135
        
136
        return $this->config[$filename];
137
    }