Permalink
Browse files

Fixed PSR2 violatons with trailing spaces.

  • Loading branch information...
1 parent 84ddb23 commit d3abf82fccb3aeec44131b860a1ca53ba7b632cb @valorin valorin committed Dec 8, 2012
@@ -68,7 +68,7 @@ public function authenticate(AuthEvent $e)
$this->setSatisfied(false);
return false;
}
-
+
if ($this->getOptions()->getEnableUserState()) {
// Don't allow user to login if state is not in allowed list
if (!in_array($userObject->getState(), $this->getOptions()->getAllowedLoginStates())) {
@@ -78,7 +78,7 @@ public function authenticate(AuthEvent $e)
return false;
}
}
-
+
$bcrypt = new Bcrypt();
$bcrypt->setCost($this->getOptions()->getPasswordCost());
if (!$bcrypt->verify($credential,$userObject->getPassword())) {
@@ -23,7 +23,7 @@ class ZfcUserAuthentication extends AbstractPlugin
* @var ServiceLocatorInterface
*/
protected $serviceLocator;
-
+
/**
* Proxy convenience method
*
@@ -28,7 +28,7 @@ class User implements UserInterface
* @var string
*/
protected $password;
-
+
/**
* @var int
*/
@@ -143,7 +143,7 @@ public function setPassword($password)
$this->password = $password;
return $this;
}
-
+
/**
* Get state.
*
@@ -78,7 +78,7 @@ public function getPassword();
* @return UserInterface
*/
public function setPassword($password);
-
+
/**
* Get state.
*
@@ -5,4 +5,4 @@
class DomainException extends \RuntimeException implements
ExceptionInterface
{
-}
+}
@@ -47,7 +47,7 @@ class ModuleOptions extends AbstractOptions implements
* @var int
*/
protected $enableUserState = false;
-
+
/**
* @var int
*/
@@ -57,7 +57,7 @@ class ModuleOptions extends AbstractOptions implements
* @var Array
*/
protected $allowedLoginStates = array( null, 1 );
-
+
/**
* @var array
*/
@@ -197,7 +197,7 @@ public function getUserLoginWidgetViewTemplate()
{
return $this->userLoginWidgetViewTemplate;
}
-
+
/**
* set enable user registration
*
@@ -295,7 +295,7 @@ public function getEnableUserState()
{
return $this->enableUserState;
}
-
+
/**
* set user state usage for registration/login process
*
@@ -307,7 +307,7 @@ public function setEnableUserState($flag)
$this->enableUserState = $flag;
return $this;
}
-
+
/**
* get default user state on registration
*
@@ -317,7 +317,7 @@ public function getDefaultUserState()
{
return $this->defaultUserState;
}
-
+
/**
* set default user state on registration
*
@@ -339,7 +339,7 @@ public function getAllowedLoginStates()
{
return $this->allowedLoginStates;
}
-
+
/**
* set list of states to allow user login
*
@@ -351,7 +351,7 @@ public function setAllowedLoginStates(Array $states)
$this->allowedLoginStates = $states;
return $this;
}
-
+
/**
* set auth identity fields
*
@@ -82,7 +82,7 @@ public function register(array $data)
if ($this->getOptions()->getEnableDisplayName()) {
$user->setDisplayName($data['display_name']);
}
-
+
// If user state is enabled, set the default state value
if ($this->getOptions()->getEnableUserState()) {
if ($this->getOptions()->getDefaultUserState()) {
@@ -69,7 +69,7 @@ public function setLoginForm(LoginForm $loginForm)
$this->loginForm = $loginForm;
return $this;
}
-
+
/**
* @param string $viewTemplate
* @return ZfcUserLoginWidget
@@ -79,5 +79,5 @@ public function setViewTemplate($viewTemplate)
$this->viewTemplate = $viewTemplate;
return $this;
}
-
+
}

0 comments on commit d3abf82

Please sign in to comment.