Code Duplication    Length = 3-5 lines in 2 locations

lib/private/Installer.php 2 locations

@@ 149-151 (lines=3) @@
146
147
		\OC_App::registerAutoloading($appId, $basedir);
148
		\OC_App::setupBackgroundJobs($info['background-jobs']);
149
		if(isset($info['settings']) && is_array($info['settings'])) {
150
			\OC::$server->getSettingsManager()->setupSettings($info['settings']);
151
		}
152
153
		//run appinfo/install.php
154
		if((!isset($data['noinstall']) or $data['noinstall']==false)) {
@@ 581-585 (lines=5) @@
578
579
		OC_App::setAppTypes($info['id']);
580
581
		if(isset($info['settings']) && is_array($info['settings'])) {
582
			// requires that autoloading was registered for the app,
583
			// as happens before running the install.php some lines above
584
			\OC::$server->getSettingsManager()->setupSettings($info['settings']);
585
		}
586
587
		return $info['id'];
588
	}