Code Duplication    Length = 6-6 lines in 2 locations

lib/base.php 1 location

@@ 498-503 (lines=6) @@
495
	}
496
497
	public static function loadAppClassPaths() {
498
		foreach (OC_APP::getEnabledApps() as $app) {
499
			$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
500
			if (file_exists($file)) {
501
				require_once $file;
502
			}
503
		}
504
	}
505
506
	/**

lib/private/route/router.php 1 location

@@ 111-116 (lines=6) @@
108
	public function getRoutingFiles() {
109
		if (!isset($this->routingFiles)) {
110
			$this->routingFiles = array();
111
			foreach (\OC_APP::getEnabledApps() as $app) {
112
				$file = \OC_App::getAppPath($app) . '/appinfo/routes.php';
113
				if (file_exists($file)) {
114
					$this->routingFiles[$app] = $file;
115
				}
116
			}
117
		}
118
		return $this->routingFiles;
119
	}