浏览代码

[Security]Fixed markup

Dominique Bongiraud 14 年之前
父节点
当前提交
a85bca395a

+ 2 - 1
src/Symfony/Component/Security/Authentication/EntryPoint/AuthenticationEntryPointInterface.php

@@ -15,7 +15,8 @@ use Symfony\Component\HttpFoundation\Request;
  */
 
 /**
- * AuthenticationEntryPointInterface is the interface used to start the authentication scheme.
+ * AuthenticationEntryPointInterface is the interface used to start the
+ * authentication scheme.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 1
src/Symfony/Component/Security/Authentication/Provider/AuthenticationProviderInterface.php

@@ -15,7 +15,8 @@ use Symfony\Component\Security\Authentication\AuthenticationManagerInterface;
  */
 
 /**
- * AuthenticationProviderInterface is the interface for for all authentication providers.
+ * AuthenticationProviderInterface is the interface for for all authentication
+ * providers.
  *
  * Concrete implementations processes specific Token instances.
  *

+ 2 - 1
src/Symfony/Component/Security/Authentication/Provider/DaoAuthenticationProvider.php

@@ -22,7 +22,8 @@ use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
  */
 
 /**
- * DaoAuthenticationProvider uses a UserProviderInterface to retrieve the user for a UsernamePasswordToken.
+ * DaoAuthenticationProvider uses a UserProviderInterface to retrieve the user
+ * for a UsernamePasswordToken.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 1
src/Symfony/Component/Security/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php

@@ -22,7 +22,8 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
  *
  * This authentication provider will not perform any checks on authentication
  * requests, as they should already be pre-authenticated. However, the
- * UserProviderInterface implementation may still throw a UsernameNotFoundException, for example.
+ * UserProviderInterface implementation may still throw a
+ * UsernameNotFoundException, for example.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 6 - 4
src/Symfony/Component/Security/Authorization/AccessDecisionManager.php

@@ -150,11 +150,13 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
     /**
      * Grants access if there is consensus of granted against denied responses.
      *
-     * Consensus means majority-rule (ignoring abstains) rather than unanimous agreement (ignoring abstains).
-     * If you require unanimity, see UnanimousBased.
+     * Consensus means majority-rule (ignoring abstains) rather than unanimous
+     * agreement (ignoring abstains). If you require unanimity, see
+     * UnanimousBased.
      *
-     * If there were an equal number of grant and deny votes, the decision will be based on the
-     * allowIfEqualGrantedDeniedDecisions property value (defaults to true).
+     * If there were an equal number of grant and deny votes, the decision will
+     * be based on the allowIfEqualGrantedDeniedDecisions property value
+     * (defaults to true).
      *
      * If all voters abstained from voting, the decision will be based on the
      * allowIfAllAbstainDecisions property value (defaults to false).

+ 2 - 1
src/Symfony/Component/Security/Authorization/Voter/AuthenticatedVoter.php

@@ -15,7 +15,8 @@ use Symfony\Component\Security\Authentication\Token\AnonymousToken;
  */
 
 /**
- * AuthenticatedVoter votes if an attribute like IS_AUTHENTICATED_FULLY or IS_AUTHENTICATED_ANONYMOUSLY is present.
+ * AuthenticatedVoter votes if an attribute like IS_AUTHENTICATED_FULLY or
+ * IS_AUTHENTICATED_ANONYMOUSLY is present.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 1
src/Symfony/Component/Security/Authorization/Voter/RoleHierarchyVoter.php

@@ -15,7 +15,8 @@ use Symfony\Component\Security\Role\RoleHierarchyInterface;
  */
 
 /**
- * RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to the user before voting.
+ * RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to
+ * the user before voting.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 2
src/Symfony/Component/Security/Encoder/BasePasswordEncoder.php

@@ -67,8 +67,8 @@ abstract class BasePasswordEncoder implements PasswordEncoderInterface
     /**
      * Compares two passwords.
      *
-     * This method implements a constant-time algorithm to compare
-     * passwords to avoid (remote) timing attacks.
+     * This method implements a constant-time algorithm to compare passwords to
+     * avoid (remote) timing attacks.
      *
      * @param string $password1 The first password
      * @param string $password2 The second password

+ 2 - 1
src/Symfony/Component/Security/Role/Role.php

@@ -12,7 +12,8 @@ namespace Symfony\Component\Security\Role;
  */
 
 /**
- * Role is a simple implementation of a RoleInterface where the role is a string.
+ * Role is a simple implementation of a RoleInterface where the role is a
+ * string.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 3
src/Symfony/Component/Security/Role/RoleHierarchyInterface.php

@@ -21,9 +21,8 @@ interface RoleHierarchyInterface
     /**
      * Returns an array of all reachable roles.
      *
-     * Reachable roles are the roles directly assigned but also all
-     * roles that are transitively reachable from them in the role
-     * hierarchy.
+     * Reachable roles are the roles directly assigned but also all roles that
+     * are transitively reachable from them in the role hierarchy.
      *
      * @param array $roles An array of directly assigned roles
      *

+ 4 - 5
src/Symfony/Component/Security/Role/RoleInterface.php

@@ -14,9 +14,8 @@ namespace Symfony\Component\Security\Role;
 /**
  * RoleInterface represents a role granted to a user.
  *
- * A role must either have a string representation or
- * it needs to be explicitly supported by an at least
- * one AccessDecisionManager.
+ * A role must either have a string representation or it needs to be explicitly
+ * supported by an at least one AccessDecisionManager.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */
@@ -27,8 +26,8 @@ interface RoleInterface
      *
      * This method returns a string representation whenever possible.
      *
-     * When the role cannot be represented with sufficient precision
-     * by a string, it should return null.
+     * When the role cannot be represented with sufficient precision by a
+     * string, it should return null.
      *
      * @return string|null A string representation of the role, or null
      */

+ 2 - 1
src/Symfony/Component/Security/Role/SwitchUserRole.php

@@ -14,7 +14,8 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
  */
 
 /**
- * SwitchUserRole is used when the current user temporarily impersonates another one.
+ * SwitchUserRole is used when the current user temporarily impersonates
+ * another one.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 2 - 2
src/Symfony/Component/Security/User/InMemoryUserProvider.php

@@ -18,8 +18,8 @@ use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
 /**
  * InMemoryUserProvider is a simple non persistent user provider.
  *
- * Useful for testing, demonstration, prototyping, and for
- * simple needs (a backend with a unique admin for instance)
+ * Useful for testing, demonstration, prototyping, and for simple needs
+ * (a backend with a unique admin for instance)
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */

+ 4 - 2
src/Symfony/Component/Security/User/UserProviderInterface.php

@@ -14,7 +14,8 @@ use Symfony\Component\Security\Exception\UsernameNotFoundException;
  */
 
 /**
- * UserProviderInterface is the implementation that all user provider must implement.
+ * UserProviderInterface is the implementation that all user provider must
+ * implement.
  *
  * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */
@@ -23,7 +24,8 @@ interface UserProviderInterface
     /**
      * Loads the user for the given username.
      *
-     * This method must throw UsernameNotFoundException if the user is not found.
+     * This method must throw UsernameNotFoundException if the user is not
+     * found.
      *
      * @param  string $username The username
      *