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

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