Code Duplication    Length = 6-6 lines in 2 locations

lib/base.php 1 location

@@ 466-471 (lines=6) @@
463
	}
464
465
	public static function loadAppClassPaths() {
466
		foreach (OC_APP::getEnabledApps() as $app) {
467
			$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
468
			if (file_exists($file)) {
469
				require_once $file;
470
			}
471
		}
472
	}
473
474

lib/private/route/router.php 1 location

@@ 81-86 (lines=6) @@
78
	public function getRoutingFiles() {
79
		if (!isset($this->routingFiles)) {
80
			$this->routingFiles = array();
81
			foreach (\OC_APP::getEnabledApps() as $app) {
82
				$file = \OC_App::getAppPath($app) . '/appinfo/routes.php';
83
				if (file_exists($file)) {
84
					$this->routingFiles[$app] = $file;
85
				}
86
			}
87
		}
88
		return $this->routingFiles;
89
	}