summaryrefslogtreecommitdiffstats
path: root/Acl/Domain
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2011-12-18 14:42:59 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-12-18 14:42:59 +0100
commit1df44a7f54710ec4f270e7398bf1908af8f8ada8 (patch)
tree065956ec1dbd8d78834238a2b1cfbe9a72301186 /Acl/Domain
parentc7a14cf650b68dc67a5bb6f5056ee7ce88b849c5 (diff)
downloadsymfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.zip
symfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.tar.gz
symfony-security-1df44a7f54710ec4f270e7398bf1908af8f8ada8.tar.bz2
fixed CS
Diffstat (limited to 'Acl/Domain')
-rw-r--r--Acl/Domain/AuditLogger.php2
-rw-r--r--Acl/Domain/ObjectIdentity.php2
-rw-r--r--Acl/Domain/PermissionGrantingStrategy.php4
-rw-r--r--Acl/Domain/SecurityIdentityRetrievalStrategy.php4
4 files changed, 6 insertions, 6 deletions
diff --git a/Acl/Domain/AuditLogger.php b/Acl/Domain/AuditLogger.php
index d6d7d9d..2a6461c 100644
--- a/Acl/Domain/AuditLogger.php
+++ b/Acl/Domain/AuditLogger.php
@@ -37,7 +37,7 @@ abstract class AuditLogger implements AuditLoggerInterface
if ($granted && $ace->isAuditSuccess()) {
$this->doLog($granted, $ace);
- } else if (!$granted && $ace->isAuditFailure()) {
+ } elseif (!$granted && $ace->isAuditFailure()) {
$this->doLog($granted, $ace);
}
}
diff --git a/Acl/Domain/ObjectIdentity.php b/Acl/Domain/ObjectIdentity.php
index 3bf1fe1..42fc67c 100644
--- a/Acl/Domain/ObjectIdentity.php
+++ b/Acl/Domain/ObjectIdentity.php
@@ -61,7 +61,7 @@ final class ObjectIdentity implements ObjectIdentityInterface
try {
if ($domainObject instanceof DomainObjectInterface) {
return new self($domainObject->getObjectIdentifier(), get_class($domainObject));
- } else if (method_exists($domainObject, 'getId')) {
+ } elseif (method_exists($domainObject, 'getId')) {
return new self($domainObject->getId(), get_class($domainObject));
}
} catch (\InvalidArgumentException $invalid) {
diff --git a/Acl/Domain/PermissionGrantingStrategy.php b/Acl/Domain/PermissionGrantingStrategy.php
index c37ce29..5fb8460 100644
--- a/Acl/Domain/PermissionGrantingStrategy.php
+++ b/Acl/Domain/PermissionGrantingStrategy.php
@@ -197,9 +197,9 @@ class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface
$strategy = $ace->getStrategy();
if (self::ALL === $strategy) {
return $requiredMask === ($ace->getMask() & $requiredMask);
- } else if (self::ANY === $strategy) {
+ } elseif (self::ANY === $strategy) {
return 0 !== ($ace->getMask() & $requiredMask);
- } else if (self::EQUAL === $strategy) {
+ } elseif (self::EQUAL === $strategy) {
return $requiredMask === $ace->getMask();
}
diff --git a/Acl/Domain/SecurityIdentityRetrievalStrategy.php b/Acl/Domain/SecurityIdentityRetrievalStrategy.php
index 4c16a50..67312b2 100644
--- a/Acl/Domain/SecurityIdentityRetrievalStrategy.php
+++ b/Acl/Domain/SecurityIdentityRetrievalStrategy.php
@@ -69,10 +69,10 @@ class SecurityIdentityRetrievalStrategy implements SecurityIdentityRetrievalStra
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_FULLY);
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED);
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY);
- } else if ($this->authenticationTrustResolver->isRememberMe($token)) {
+ } elseif ($this->authenticationTrustResolver->isRememberMe($token)) {
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_REMEMBERED);
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY);
- } else if ($this->authenticationTrustResolver->isAnonymous($token)) {
+ } elseif ($this->authenticationTrustResolver->isAnonymous($token)) {
$sids[] = new RoleSecurityIdentity(AuthenticatedVoter::IS_AUTHENTICATED_ANONYMOUSLY);
}