summaryrefslogtreecommitdiffstats
path: root/Core
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-04-16 12:30:19 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-04-16 12:30:19 +0200
commita6be31fc09c34a308c7a756b39e8a504a822694f (patch)
treeecf7561ca743f0a175d572057834942d4d88a54f /Core
parent74eaf535ddcd6cad834c68e7802cfcb08f400c1e (diff)
downloadsymfony-security-a6be31fc09c34a308c7a756b39e8a504a822694f.zip
symfony-security-a6be31fc09c34a308c7a756b39e8a504a822694f.tar.gz
symfony-security-a6be31fc09c34a308c7a756b39e8a504a822694f.tar.bz2
fixed types in phpdocs
Diffstat (limited to 'Core')
-rw-r--r--Core/Authentication/AuthenticationTrustResolverInterface.php6
-rw-r--r--Core/Authentication/Provider/AuthenticationProviderInterface.php2
-rw-r--r--Core/Authentication/Token/AbstractToken.php2
-rw-r--r--Core/Authentication/Token/TokenInterface.php4
-rw-r--r--Core/Authorization/AccessDecisionManagerInterface.php4
-rw-r--r--Core/Authorization/Voter/VoterInterface.php6
-rw-r--r--Core/Encoder/BasePasswordEncoder.php4
-rw-r--r--Core/Encoder/PasswordEncoderInterface.php2
-rw-r--r--Core/SecurityContextInterface.php2
-rw-r--r--Core/User/AdvancedUserInterface.php8
-rw-r--r--Core/User/EquatableInterface.php2
-rw-r--r--Core/User/UserProviderInterface.php2
-rw-r--r--Core/Util/StringUtils.php2
13 files changed, 23 insertions, 23 deletions
diff --git a/Core/Authentication/AuthenticationTrustResolverInterface.php b/Core/Authentication/AuthenticationTrustResolverInterface.php
index ac07db0..03b48e9 100644
--- a/Core/Authentication/AuthenticationTrustResolverInterface.php
+++ b/Core/Authentication/AuthenticationTrustResolverInterface.php
@@ -28,7 +28,7 @@ interface AuthenticationTrustResolverInterface
*
* @param TokenInterface $token
*
- * @return Boolean
+ * @return bool
*/
public function isAnonymous(TokenInterface $token = null);
@@ -38,7 +38,7 @@ interface AuthenticationTrustResolverInterface
*
* @param TokenInterface $token
*
- * @return Boolean
+ * @return bool
*/
public function isRememberMe(TokenInterface $token = null);
@@ -47,7 +47,7 @@ interface AuthenticationTrustResolverInterface
*
* @param TokenInterface $token
*
- * @return Boolean
+ * @return bool
*/
public function isFullFledged(TokenInterface $token = null);
}
diff --git a/Core/Authentication/Provider/AuthenticationProviderInterface.php b/Core/Authentication/Provider/AuthenticationProviderInterface.php
index f63a924..23724db 100644
--- a/Core/Authentication/Provider/AuthenticationProviderInterface.php
+++ b/Core/Authentication/Provider/AuthenticationProviderInterface.php
@@ -29,7 +29,7 @@ interface AuthenticationProviderInterface extends AuthenticationManagerInterface
*
* @param TokenInterface $token A TokenInterface instance
*
- * @return Boolean true if the implementation supports the Token, false otherwise
+ * @return bool true if the implementation supports the Token, false otherwise
*/
public function supports(TokenInterface $token);
}
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php
index c22522c..993960b 100644
--- a/Core/Authentication/Token/AbstractToken.php
+++ b/Core/Authentication/Token/AbstractToken.php
@@ -192,7 +192,7 @@ abstract class AbstractToken implements TokenInterface
*
* @param string $name The attribute name
*
- * @return Boolean true if the attribute exists, false otherwise
+ * @return bool true if the attribute exists, false otherwise
*/
public function hasAttribute($name)
{
diff --git a/Core/Authentication/Token/TokenInterface.php b/Core/Authentication/Token/TokenInterface.php
index a909469..8f7d03f 100644
--- a/Core/Authentication/Token/TokenInterface.php
+++ b/Core/Authentication/Token/TokenInterface.php
@@ -69,7 +69,7 @@ interface TokenInterface extends \Serializable
/**
* Returns whether the user is authenticated or not.
*
- * @return Boolean true if the token has been authenticated, false otherwise
+ * @return bool true if the token has been authenticated, false otherwise
*/
public function isAuthenticated();
@@ -104,7 +104,7 @@ interface TokenInterface extends \Serializable
*
* @param string $name The attribute name
*
- * @return Boolean true if the attribute exists, false otherwise
+ * @return bool true if the attribute exists, false otherwise
*/
public function hasAttribute($name);
diff --git a/Core/Authorization/AccessDecisionManagerInterface.php b/Core/Authorization/AccessDecisionManagerInterface.php
index 742ea74..ec82800 100644
--- a/Core/Authorization/AccessDecisionManagerInterface.php
+++ b/Core/Authorization/AccessDecisionManagerInterface.php
@@ -27,7 +27,7 @@ interface AccessDecisionManagerInterface
* @param array $attributes An array of attributes associated with the method being invoked
* @param object $object The object to secure
*
- * @return Boolean true if the access is granted, false otherwise
+ * @return bool true if the access is granted, false otherwise
*/
public function decide(TokenInterface $token, array $attributes, $object = null);
@@ -36,7 +36,7 @@ interface AccessDecisionManagerInterface
*
* @param string $attribute An attribute
*
- * @return Boolean true if this decision manager supports the attribute, false otherwise
+ * @return bool true if this decision manager supports the attribute, false otherwise
*/
public function supportsAttribute($attribute);
diff --git a/Core/Authorization/Voter/VoterInterface.php b/Core/Authorization/Voter/VoterInterface.php
index 0840c1c..abc18b4 100644
--- a/Core/Authorization/Voter/VoterInterface.php
+++ b/Core/Authorization/Voter/VoterInterface.php
@@ -29,7 +29,7 @@ interface VoterInterface
*
* @param string $attribute An attribute
*
- * @return Boolean true if this Voter supports the attribute, false otherwise
+ * @return bool true if this Voter supports the attribute, false otherwise
*/
public function supportsAttribute($attribute);
@@ -38,7 +38,7 @@ interface VoterInterface
*
* @param string $class A class name
*
- * @return Boolean true if this Voter can process the class
+ * @return bool true if this Voter can process the class
*/
public function supportsClass($class);
@@ -52,7 +52,7 @@ interface VoterInterface
* @param object $object The object to secure
* @param array $attributes An array of attributes associated with the method being invoked
*
- * @return integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
+ * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
*/
public function vote(TokenInterface $token, $object, array $attributes);
}
diff --git a/Core/Encoder/BasePasswordEncoder.php b/Core/Encoder/BasePasswordEncoder.php
index b83eb30..b27c2b0 100644
--- a/Core/Encoder/BasePasswordEncoder.php
+++ b/Core/Encoder/BasePasswordEncoder.php
@@ -79,7 +79,7 @@ abstract class BasePasswordEncoder implements PasswordEncoderInterface
* @param string $password1 The first password
* @param string $password2 The second password
*
- * @return Boolean true if the two passwords are the same, false otherwise
+ * @return bool true if the two passwords are the same, false otherwise
*/
protected function comparePasswords($password1, $password2)
{
@@ -89,7 +89,7 @@ abstract class BasePasswordEncoder implements PasswordEncoderInterface
/**
* Checks if the password is too long.
*
- * @return Boolean true if the password is too long, false otherwise
+ * @return bool true if the password is too long, false otherwise
*/
protected function isPasswordTooLong($password)
{
diff --git a/Core/Encoder/PasswordEncoderInterface.php b/Core/Encoder/PasswordEncoderInterface.php
index 78b4e42..23acaf3 100644
--- a/Core/Encoder/PasswordEncoderInterface.php
+++ b/Core/Encoder/PasswordEncoderInterface.php
@@ -35,7 +35,7 @@ interface PasswordEncoderInterface
* @param string $raw A raw password
* @param string $salt The salt
*
- * @return Boolean true if the password is valid, false otherwise
+ * @return bool true if the password is valid, false otherwise
*/
public function isPasswordValid($encoded, $raw, $salt);
}
diff --git a/Core/SecurityContextInterface.php b/Core/SecurityContextInterface.php
index 434f9a5..ca816a8 100644
--- a/Core/SecurityContextInterface.php
+++ b/Core/SecurityContextInterface.php
@@ -44,7 +44,7 @@ interface SecurityContextInterface
* @param mixed $attributes
* @param mixed $object
*
- * @return Boolean
+ * @return bool
*/
public function isGranted($attributes, $object = null);
}
diff --git a/Core/User/AdvancedUserInterface.php b/Core/User/AdvancedUserInterface.php
index 5b3a51a..19775c0 100644
--- a/Core/User/AdvancedUserInterface.php
+++ b/Core/User/AdvancedUserInterface.php
@@ -43,7 +43,7 @@ interface AdvancedUserInterface extends UserInterface
* Internally, if this method returns false, the authentication system
* will throw an AccountExpiredException and prevent login.
*
- * @return Boolean true if the user's account is non expired, false otherwise
+ * @return bool true if the user's account is non expired, false otherwise
*
* @see AccountExpiredException
*/
@@ -55,7 +55,7 @@ interface AdvancedUserInterface extends UserInterface
* Internally, if this method returns false, the authentication system
* will throw a LockedException and prevent login.
*
- * @return Boolean true if the user is not locked, false otherwise
+ * @return bool true if the user is not locked, false otherwise
*
* @see LockedException
*/
@@ -67,7 +67,7 @@ interface AdvancedUserInterface extends UserInterface
* Internally, if this method returns false, the authentication system
* will throw a CredentialsExpiredException and prevent login.
*
- * @return Boolean true if the user's credentials are non expired, false otherwise
+ * @return bool true if the user's credentials are non expired, false otherwise
*
* @see CredentialsExpiredException
*/
@@ -79,7 +79,7 @@ interface AdvancedUserInterface extends UserInterface
* Internally, if this method returns false, the authentication system
* will throw a DisabledException and prevent login.
*
- * @return Boolean true if the user is enabled, false otherwise
+ * @return bool true if the user is enabled, false otherwise
*
* @see DisabledException
*/
diff --git a/Core/User/EquatableInterface.php b/Core/User/EquatableInterface.php
index 645b77c..c6082ce 100644
--- a/Core/User/EquatableInterface.php
+++ b/Core/User/EquatableInterface.php
@@ -31,7 +31,7 @@ interface EquatableInterface
*
* @param UserInterface $user
*
- * @return Boolean
+ * @return bool
*/
public function isEqualTo(UserInterface $user);
}
diff --git a/Core/User/UserProviderInterface.php b/Core/User/UserProviderInterface.php
index 6669c43..6b7895c 100644
--- a/Core/User/UserProviderInterface.php
+++ b/Core/User/UserProviderInterface.php
@@ -70,7 +70,7 @@ interface UserProviderInterface
*
* @param string $class
*
- * @return Boolean
+ * @return bool
*/
public function supportsClass($class);
}
diff --git a/Core/Util/StringUtils.php b/Core/Util/StringUtils.php
index 2e8925d..d47bd4b 100644
--- a/Core/Util/StringUtils.php
+++ b/Core/Util/StringUtils.php
@@ -31,7 +31,7 @@ class StringUtils
* @param string $knownString The string of known length to compare against
* @param string $userInput The string that the user can control
*
- * @return Boolean true if the two strings are the same, false otherwise
+ * @return bool true if the two strings are the same, false otherwise
*/
public static function equals($knownString, $userInput)
{