Fix linting issues

This commit is contained in:
Damian Mooyman 2017-08-02 14:08:59 +12:00
parent 1867ee82c4
commit 8418011456
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -459,7 +459,7 @@ class Security extends Controller implements TemplateGlobalProvider
}, },
$this->getApplicableAuthenticators() $this->getApplicableAuthenticators()
); );
} }
/** /**
@ -678,7 +678,7 @@ class Security extends Controller implements TemplateGlobalProvider
$handlers, $handlers,
function (Authenticator &$auth, $name) use ($link) { function (Authenticator &$auth, $name) use ($link) {
$auth = $auth->getLoginHandler(Controller::join_links($link, $name)); $auth = $auth->getLoginHandler(Controller::join_links($link, $name));
} }
); );
return $this->delegateToMultipleHandlers( return $this->delegateToMultipleHandlers(
@ -686,8 +686,8 @@ class Security extends Controller implements TemplateGlobalProvider
_t(__CLASS__.'.LOGIN', 'Log in'), _t(__CLASS__.'.LOGIN', 'Log in'),
$this->getTemplatesFor('login'), $this->getTemplatesFor('login'),
[$this, 'aggregateTabbedForms'] [$this, 'aggregateTabbedForms']
); );
} }
/** /**
* Log the currently logged in user out * Log the currently logged in user out
@ -891,7 +891,7 @@ class Security extends Controller implements TemplateGlobalProvider
// Return the customised controller - may be used to render a Form (e.g. login form) // Return the customised controller - may be used to render a Form (e.g. login form)
if (is_array($result)) { if (is_array($result)) {
$result = $this->renderWrappedController($title, $result, $templates); $result = $this->renderWrappedController($title, $result, $templates);
} }
return $result; return $result;
} }
@ -988,8 +988,8 @@ class Security extends Controller implements TemplateGlobalProvider
_t('SilverStripe\\Security\\Security.CHANGEPASSWORDHEADER', 'Change your password'), _t('SilverStripe\\Security\\Security.CHANGEPASSWORDHEADER', 'Change your password'),
$this->getTemplatesFor('changepassword'), $this->getTemplatesFor('changepassword'),
[$this, 'aggregateAuthenticatorResponses'] [$this, 'aggregateAuthenticatorResponses']
); );
} }
/** /**
* Create a link to the password reset form. * Create a link to the password reset form.
@ -1052,7 +1052,7 @@ class Security extends Controller implements TemplateGlobalProvider
$service = DefaultAdminService::singleton(); $service = DefaultAdminService::singleton();
return $service->findOrCreateDefaultAdmin(); return $service->findOrCreateDefaultAdmin();
} }
/** /**
* Flush the default admin credentials * Flush the default admin credentials