Code Duplication    Length = 3-5 lines in 2 locations

lib/private/Installer.php 2 locations

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