Code Duplication    Length = 9-11 lines in 2 locations

lib/private/Route/Router.php 1 location

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

lib/base.php 1 location

@@ 470-480 (lines=11) @@
467
	}
468
469
	public static function loadAppClassPaths() {
470
		foreach (OC_App::getEnabledApps() as $app) {
471
			$appPath = OC_App::getAppPath($app);
472
			if ($appPath === false) {
473
				continue;
474
			}
475
476
			$file = $appPath . '/appinfo/classpath.php';
477
			if (file_exists($file)) {
478
				require_once $file;
479
			}
480
		}
481
	}
482
483
	/**