core/Application.php
Method __construct
has 172 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(array $urlParams= []) {
parent::__construct('core', $urlParams);
$container = $this->getContainer();
$server = $container->getServer();
Avoid too many return
statements within this method. Open
Open
return new LicenseController(
$c->query('AppName'),
$c->query('Request'),
$server->getLicenseManager()
);
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getConfig();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getLogger();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getURLGenerator();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getUserManager();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getAvatarManager();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getSession();
Avoid too many return
statements within this method. Open
Open
return new RolesController(
$c->query('AppName'),
$c->query('Request'),
$c->query('L10N'),
$serverContainer->getEventDispatcher()
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getMailer();
Avoid too many return
statements within this method. Open
Open
return new CloudController(
$c->query('AppName'),
$c->query('Request')
);
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getUserSession();
Avoid too many return
statements within this method. Open
Open
return new OC_Defaults;
Avoid too many return
statements within this method. Open
Open
return Util::getDefaultEmailAddress('lostpassword-noreply');
Avoid too many return
statements within this method. Open
Open
return new CronController(
$c->query('AppName'),
$c->query('Request'),
$c->query(IConfig::class),
$c->query(ILogger::class),
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getTwoFactorAuthManager();
Avoid too many return
statements within this method. Open
Open
return new UserSyncController(
$c->query('AppName'),
$c->query('Request'),
$syncService,
$c->query('UserManager')
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getL10N('core');
Avoid too many return
statements within this method. Open
Open
return new TimeFactory();
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getEncryptionManager()->isEnabled();
Avoid too many return
statements within this method. Open
Open
return new TokenController(
$c->query('AppName'),
$c->query('Request'),
$c->query('UserManager'),
$c->query('ServerContainer')->query('OC\Authentication\Token\IProvider'),
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getSecureRandom();
Avoid too many return
statements within this method. Open
Open
return new TwoFactorChallengeController(
$c->query('AppName'),
$c->query('Request'),
$c->query('TwoFactorAuthManager'),
$c->query('UserSession'),
Avoid too many return
statements within this method. Open
Open
return $c->query('ServerContainer')->getCache();