Code Duplication    Length = 9-11 lines in 2 locations

lib/private/Route/Router.php 1 location

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

lib/base.php 1 location

@@ 438-448 (lines=11) @@
435
	}
436
437
	public static function loadAppClassPaths() {
438
		foreach (OC_App::getEnabledApps() as $app) {
439
			$appPath = OC_App::getAppPath($app);
440
			if ($appPath === false) {
441
				continue;
442
			}
443
444
			$file = $appPath . '/appinfo/classpath.php';
445
			if (file_exists($file)) {
446
				require_once $file;
447
			}
448
		}
449
	}
450
451
	/**