Code Duplication    Length = 9-11 lines in 2 locations

lib/base.php 1 location

@@ 451-461 (lines=11) @@
448
	}
449
450
	public static function loadAppClassPaths() {
451
		foreach (OC_App::getEnabledApps() as $app) {
452
			$appPath = OC_App::getAppPath($app);
453
			if ($appPath === false) {
454
				continue;
455
			}
456
457
			$file = $appPath . '/appinfo/classpath.php';
458
			if (file_exists($file)) {
459
				require_once $file;
460
			}
461
		}
462
	}
463
464
	/**

lib/private/Route/Router.php 1 location

@@ 97-105 (lines=9) @@
94
	public function getRoutingFiles() {
95
		if (!isset($this->routingFiles)) {
96
			$this->routingFiles = [];
97
			foreach (\OC_APP::getEnabledApps() as $app) {
98
				$appPath = \OC_App::getAppPath($app);
99
				if($appPath !== false) {
100
					$file = $appPath . '/appinfo/routes.php';
101
					if (file_exists($file)) {
102
						$this->routingFiles[$app] = $file;
103
					}
104
				}
105
			}
106
		}
107
		return $this->routingFiles;
108
	}