summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDariusz Ruminski <dariusz.ruminski@gmail.com>2015-12-01 23:08:33 +0100
committerDariusz Ruminski <dariusz.ruminski@gmail.com>2015-12-01 23:08:33 +0100
commita10207a9431ad9584cacb4c267f748c5ebe629b9 (patch)
tree90121934a412b4b2ca993bfbbe154d8e67b2fc23
parent1500a2ceb20b1bcf908f07ee2104225b3e35ee65 (diff)
downloadsymfony-security-a10207a9431ad9584cacb4c267f748c5ebe629b9.zip
symfony-security-a10207a9431ad9584cacb4c267f748c5ebe629b9.tar.gz
symfony-security-a10207a9431ad9584cacb4c267f748c5ebe629b9.tar.bz2
CS: general fixes
-rw-r--r--Acl/Dbal/AclProvider.php6
-rw-r--r--Core/User/InMemoryUserProvider.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/Acl/Dbal/AclProvider.php b/Acl/Dbal/AclProvider.php
index 1fade3b..0ccc19f 100644
--- a/Acl/Dbal/AclProvider.php
+++ b/Acl/Dbal/AclProvider.php
@@ -571,7 +571,7 @@ QUERY;
$oidCache[$oidLookupKey] = new ObjectIdentity($objectIdentifier, $classType);
}
- $acl = new Acl((int) $aclId, $oidCache[$oidLookupKey], $permissionGrantingStrategy, $emptyArray, !!$entriesInheriting);
+ $acl = new Acl((int) $aclId, $oidCache[$oidLookupKey], $permissionGrantingStrategy, $emptyArray, (bool) $entriesInheriting);
// keep a local, and global reference to this ACL
$loadedAcls[$classType][$objectIdentifier] = $acl;
@@ -613,9 +613,9 @@ QUERY;
}
if (null === $fieldName) {
- $loadedAces[$aceId] = new Entry((int) $aceId, $acl, $sids[$key], $grantingStrategy, (int) $mask, !!$granting, !!$auditFailure, !!$auditSuccess);
+ $loadedAces[$aceId] = new Entry((int) $aceId, $acl, $sids[$key], $grantingStrategy, (int) $mask, (bool) $granting, (bool) $auditFailure, (bool) $auditSuccess);
} else {
- $loadedAces[$aceId] = new FieldEntry((int) $aceId, $acl, $fieldName, $sids[$key], $grantingStrategy, (int) $mask, !!$granting, !!$auditFailure, !!$auditSuccess);
+ $loadedAces[$aceId] = new FieldEntry((int) $aceId, $acl, $fieldName, $sids[$key], $grantingStrategy, (int) $mask, (bool) $granting, (bool) $auditFailure, (bool) $auditSuccess);
}
}
$ace = $loadedAces[$aceId];
diff --git a/Core/User/InMemoryUserProvider.php b/Core/User/InMemoryUserProvider.php
index 9aa39ca..c1981de 100644
--- a/Core/User/InMemoryUserProvider.php
+++ b/Core/User/InMemoryUserProvider.php
@@ -97,7 +97,7 @@ class InMemoryUserProvider implements UserProviderInterface
/**
* Returns the user by given username.
*
- * @param string $username The username.
+ * @param string $username The username.
*
* @return User
*