Code Duplication    Length = 3-6 lines in 3 locations

Alpha/Controller/Controller.php 2 locations

@@ 1242-1247 (lines=6) @@
1239
            self::$logger->debug('<<getCustomControllerName ['.$controllerName.']');
1240
1241
            return $controllerName;
1242
        } elseif (file_exists($config->get('app.root').'Alpha/Controller/'.$controllerName.'.php')) {
1243
            $controllerName = 'Alpha\Controller\\'.$controllerName;
1244
            self::$logger->debug('<<getCustomControllerName ['.$controllerName.']');
1245
1246
            return $controllerName;
1247
        } else {
1248
            self::$logger->debug('<<getCustomControllerName');
1249
1250
            return;
@@ 1348-1350 (lines=3) @@
1345
1346
        if (file_exists($config->get('app.root').'Controller/'.$controllerName.'.php')) {
1347
            require_once $config->get('app.root').'Controller/'.$controllerName.'.php';
1348
        } elseif (file_exists($config->get('app.root').'Alpha/Controller/'.$controllerName.'.php')) {
1349
            require_once $config->get('app.root').'Alpha/Controller/'.$controllerName.'.php';
1350
        } else {
1351
            throw new IllegalArguementException('The class ['.$controllerName.'] is not defined anywhere!');
1352
        }
1353

Alpha/Model/ActiveRecord.php 1 location

@@ 2125-2127 (lines=3) @@
2122
2123
        if (file_exists($config->get('app.root').'Model/'.$classname.'.php')) {
2124
            require_once $config->get('app.root').'Model/'.$classname.'.php';
2125
        } elseif (file_exists($config->get('app.root').'alpha/Alpha/Model/'.$classname.'.php')) {
2126
            require_once $config->get('app.root').'alpha/Alpha/Model/'.$classname.'.php';
2127
        } elseif (file_exists($config->get('app.root').'alpha/Alpha/Model/Types/'.$classname.'.php')) {
2128
            require_once $config->get('app.root').'alpha/Alpha/Model/Types/'.$classname.'.php';
2129
        } else {
2130
            throw new IllegalArguementException('The class ['.$classname.'] is not defined anywhere!');