Code Duplication    Length = 3-5 lines in 2 locations

lib/private/Installer.php 2 locations

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