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

@@ 477-482 (lines=6) @@
474
	}
475
476
	public static function loadAppClassPaths() {
477
		foreach (OC_APP::getEnabledApps() as $app) {
478
			$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
479
			if (file_exists($file)) {
480
				require_once $file;
481
			}
482
		}
483
	}
484
485
	/**