for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Authenticator for the default "member" method
*
* @author Markus Lanthaler <[email protected]>
* @package sapphire
* @subpackage security
*/
class MemberAuthenticatorWithSignup extends Authenticator
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* Method that creates the login form for this authentication method
* @param Controller The parent controller, necessary to create the
$controller
Controller
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* appropriate form action tag
* @return Form Returns the login form to use with this authentication
* method
public static function get_login_form(Controller $controller)
return Object::create("MemberLoginFormWithSignup", $controller, "LoginForm");
}
* Get the name of the authentication method
* @return string Returns the name of the authentication method.
public static function get_name()
if (Member::currentUser()) {
return _t('MemberAuthenticator.UPDATE', "Update your account details");
} else {
return _t('MemberAuthenticator.SIGNUP', "Signup with Email");
public static function authenticate($RAW_data, Form $form = null)
return true;
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.