Code Duplication    Length = 6-6 lines in 2 locations

lib/private/route/router.php 1 location

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

lib/base.php 1 location

@@ 458-463 (lines=6) @@
455
	}
456
457
	public static function loadAppClassPaths() {
458
		foreach (OC_APP::getEnabledApps() as $app) {
459
			$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
460
			if (file_exists($file)) {
461
				require_once $file;
462
			}
463
		}
464
	}
465
466
	/**