summaryrefslogtreecommitdiffstats
path: root/Core/Authentication
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-03-30 17:55:07 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-03-30 17:55:07 +0200
commitb071a103319fc4d8549e17e575c75b8b3417d8cd (patch)
tree3f901a8dc01d8a8af8c32b3dfdd622e6055c121f /Core/Authentication
parent02b20eccaf64c7c3c138f89e91f0a83c90cebfa2 (diff)
parent06dbcd5a5464cccf4c748071f338f34130ecad06 (diff)
downloadsymfony-security-b071a103319fc4d8549e17e575c75b8b3417d8cd.zip
symfony-security-b071a103319fc4d8549e17e575c75b8b3417d8cd.tar.gz
symfony-security-b071a103319fc4d8549e17e575c75b8b3417d8cd.tar.bz2
Merge branch '2.6' into 2.7
* 2.6: [Validator] Add missing pt_BR translations Add parsing of hexadecimal strings for PHP 7 [Configuration] improve description for ignoreExtraKeys on ArrayNodeDefinition [Validator] Added missing Hungarian translation [Validator] Fixed grammar in Hungarian translation CS: Unary operators should be placed adjacent to their operands CS: Binary operators should be arounded by at least one space remove useless tests that fail in php 7 [Translator] fix test for php 7 compatibility Update phpdoc of ProcessBuilder#setPrefix() Conflicts: src/Symfony/Bridge/Propel1/Logger/PropelLogger.php src/Symfony/Component/Validator/Resources/translations/validators.hu.xlf
Diffstat (limited to 'Core/Authentication')
-rw-r--r--Core/Authentication/Token/AbstractToken.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php
index c6bf09f..1d12ab0 100644
--- a/Core/Authentication/Token/AbstractToken.php
+++ b/Core/Authentication/Token/AbstractToken.php
@@ -231,7 +231,7 @@ abstract class AbstractToken implements TokenInterface
public function __toString()
{
$class = get_class($this);
- $class = substr($class, strrpos($class, '\\')+1);
+ $class = substr($class, strrpos($class, '\\') + 1);
$roles = array();
foreach ($this->roles as $role) {
@@ -248,7 +248,7 @@ abstract class AbstractToken implements TokenInterface
}
if ($this->user instanceof EquatableInterface) {
- return ! (bool) $this->user->isEqualTo($user);
+ return !(bool) $this->user->isEqualTo($user);
}
if ($this->user->getPassword() !== $user->getPassword()) {