diff options
author | Graham Campbell <graham@mineuk.com> | 2014-12-21 17:00:50 +0000 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-12-22 16:58:09 +0100 |
commit | a542abcf38b95de8e8f01f42b6127e7fffc645a8 (patch) | |
tree | c84aaf43e18f7fc448861b918a5785a117013fb6 | |
parent | 3b1993579d11af545a1effd2cb3367665dd5a5fd (diff) | |
download | symfony-security-a542abcf38b95de8e8f01f42b6127e7fffc645a8.zip symfony-security-a542abcf38b95de8e8f01f42b6127e7fffc645a8.tar.gz symfony-security-a542abcf38b95de8e8f01f42b6127e7fffc645a8.tar.bz2 |
[2.3] CS And DocBlock Fixes
56 files changed, 155 insertions, 150 deletions
diff --git a/Acl/Dbal/MutableAclProvider.php b/Acl/Dbal/MutableAclProvider.php index 34f1ea6..1df371f 100644 --- a/Acl/Dbal/MutableAclProvider.php +++ b/Acl/Dbal/MutableAclProvider.php @@ -138,7 +138,7 @@ class MutableAclProvider extends AclProvider implements MutableAclProviderInterf } /** - * Implementation of PropertyChangedListener + * Implementation of PropertyChangedListener. * * This allows us to keep track of which values have been changed, so we don't * have to do a full introspection when ->updateAcl() is called. @@ -674,7 +674,7 @@ QUERY; } /** - * Creates the ACL for the passed object identity + * Creates the ACL for the passed object identity. * * @param ObjectIdentityInterface $oid */ diff --git a/Acl/Dbal/Schema.php b/Acl/Dbal/Schema.php index fd25926..ed9327c 100644 --- a/Acl/Dbal/Schema.php +++ b/Acl/Dbal/Schema.php @@ -24,7 +24,7 @@ final class Schema extends BaseSchema protected $options; /** - * Constructor + * Constructor. * * @param array $options the names for tables * @param Connection $connection @@ -61,7 +61,7 @@ final class Schema extends BaseSchema } /** - * Adds the class table to the schema + * Adds the class table to the schema. */ protected function addClassTable() { @@ -73,7 +73,7 @@ final class Schema extends BaseSchema } /** - * Adds the entry table to the schema + * Adds the entry table to the schema. */ protected function addEntryTable() { @@ -101,7 +101,7 @@ final class Schema extends BaseSchema } /** - * Adds the object identity table to the schema + * Adds the object identity table to the schema. */ protected function addObjectIdentitiesTable() { @@ -121,7 +121,7 @@ final class Schema extends BaseSchema } /** - * Adds the object identity relation table to the schema + * Adds the object identity relation table to the schema. */ protected function addObjectIdentityAncestorsTable() { @@ -138,7 +138,7 @@ final class Schema extends BaseSchema } /** - * Adds the security identity table to the schema + * Adds the security identity table to the schema. */ protected function addSecurityIdentitiesTable() { diff --git a/Acl/Domain/Acl.php b/Acl/Domain/Acl.php index 8222df7..0366ccf 100644 --- a/Acl/Domain/Acl.php +++ b/Acl/Domain/Acl.php @@ -47,7 +47,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged private $listeners; /** - * Constructor + * Constructor. * * @param int $id * @param ObjectIdentityInterface $objectIdentity @@ -71,7 +71,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Adds a property changed listener + * Adds a property changed listener. * * @param PropertyChangedListener $listener */ @@ -256,7 +256,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Implementation for the \Serializable interface + * Implementation for the \Serializable interface. * * @return string */ @@ -276,7 +276,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Implementation for the \Serializable interface + * Implementation for the \Serializable interface. * * @param string $serialized */ @@ -395,7 +395,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Deletes an ACE + * Deletes an ACE. * * @param string $property * @param int $index @@ -420,7 +420,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Deletes a field-based ACE + * Deletes a field-based ACE. * * @param string $property * @param int $index @@ -446,7 +446,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Inserts an ACE + * Inserts an ACE. * * @param string $property * @param int $index @@ -495,7 +495,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Inserts a field-based ACE + * Inserts a field-based ACE. * * @param string $property * @param int $index @@ -553,7 +553,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Updates an ACE + * Updates an ACE. * * @param string $property * @param int $index @@ -581,7 +581,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Updates auditing for an ACE + * Updates auditing for an ACE. * * @param array &$aces * @param int $index @@ -608,7 +608,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Updates a field-based ACE + * Updates a field-based ACE. * * @param string $property * @param int $index @@ -642,7 +642,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Called when a property of the ACL changes + * Called when a property of the ACL changes. * * @param string $name * @param mixed $oldValue @@ -656,7 +656,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } /** - * Called when a property of an ACE associated with this ACL changes + * Called when a property of an ACE associated with this ACL changes. * * @param EntryInterface $entry * @param string $name diff --git a/Acl/Domain/AuditLogger.php b/Acl/Domain/AuditLogger.php index feb2c42..e3f3bdd 100644 --- a/Acl/Domain/AuditLogger.php +++ b/Acl/Domain/AuditLogger.php @@ -16,14 +16,14 @@ use Symfony\Component\Security\Acl\Model\EntryInterface; use Symfony\Component\Security\Acl\Model\AuditLoggerInterface; /** - * Base audit logger implementation + * Base audit logger implementation. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ abstract class AuditLogger implements AuditLoggerInterface { /** - * Performs some checks if logging was requested + * Performs some checks if logging was requested. * * @param bool $granted * @param EntryInterface $ace @@ -42,7 +42,7 @@ abstract class AuditLogger implements AuditLoggerInterface } /** - * This method is only called when logging is needed + * This method is only called when logging is needed. * * @param bool $granted * @param EntryInterface $ace diff --git a/Acl/Domain/DoctrineAclCache.php b/Acl/Domain/DoctrineAclCache.php index 00864f0..667a19e 100644 --- a/Acl/Domain/DoctrineAclCache.php +++ b/Acl/Domain/DoctrineAclCache.php @@ -32,7 +32,7 @@ class DoctrineAclCache implements AclCacheInterface private $permissionGrantingStrategy; /** - * Constructor + * Constructor. * * @param Cache $cache * @param PermissionGrantingStrategyInterface $permissionGrantingStrategy @@ -203,7 +203,7 @@ class DoctrineAclCache implements AclCacheInterface } /** - * Returns the key for the object identity + * Returns the key for the object identity. * * @param ObjectIdentityInterface $oid * @@ -216,7 +216,7 @@ class DoctrineAclCache implements AclCacheInterface } /** - * Returns the alias key for the object identity key + * Returns the alias key for the object identity key. * * @param string $aclId * diff --git a/Acl/Domain/Entry.php b/Acl/Domain/Entry.php index a487c96..55c4b37 100644 --- a/Acl/Domain/Entry.php +++ b/Acl/Domain/Entry.php @@ -16,7 +16,7 @@ use Symfony\Component\Security\Acl\Model\AuditableEntryInterface; use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; /** - * Auditable ACE implementation + * Auditable ACE implementation. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -32,7 +32,7 @@ class Entry implements AuditableEntryInterface private $granting; /** - * Constructor + * Constructor. * * @param int $id * @param AclInterface $acl @@ -146,7 +146,7 @@ class Entry implements AuditableEntryInterface } /** - * Sets the permission mask + * Sets the permission mask. * * Do never call this method directly. Use the respective methods on the * AclInterface instead. @@ -159,7 +159,7 @@ class Entry implements AuditableEntryInterface } /** - * Sets the mask comparison strategy + * Sets the mask comparison strategy. * * Do never call this method directly. Use the respective methods on the * AclInterface instead. @@ -172,7 +172,7 @@ class Entry implements AuditableEntryInterface } /** - * Implementation of \Serializable + * Implementation of \Serializable. * * @return string */ @@ -190,7 +190,7 @@ class Entry implements AuditableEntryInterface } /** - * Implementation of \Serializable + * Implementation of \Serializable. * * @param string $serialized */ diff --git a/Acl/Domain/FieldEntry.php b/Acl/Domain/FieldEntry.php index 2edc33d..86b1e5b 100644 --- a/Acl/Domain/FieldEntry.php +++ b/Acl/Domain/FieldEntry.php @@ -16,7 +16,7 @@ use Symfony\Component\Security\Acl\Model\FieldEntryInterface; use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; /** - * Field-aware ACE implementation which is auditable + * Field-aware ACE implementation which is auditable. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -25,7 +25,7 @@ class FieldEntry extends Entry implements FieldEntryInterface private $field; /** - * Constructor + * Constructor. * * @param int $id * @param AclInterface $acl diff --git a/Acl/Domain/ObjectIdentity.php b/Acl/Domain/ObjectIdentity.php index 1111089..907b1d8 100644 --- a/Acl/Domain/ObjectIdentity.php +++ b/Acl/Domain/ObjectIdentity.php @@ -17,7 +17,7 @@ use Symfony\Component\Security\Acl\Model\DomainObjectInterface; use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface; /** - * ObjectIdentity implementation + * ObjectIdentity implementation. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -48,7 +48,7 @@ final class ObjectIdentity implements ObjectIdentityInterface } /** - * Constructs an ObjectIdentity for the given domain object + * Constructs an ObjectIdentity for the given domain object. * * @param object $domainObject * @@ -103,7 +103,7 @@ final class ObjectIdentity implements ObjectIdentityInterface } /** - * Returns a textual representation of this object identity + * Returns a textual representation of this object identity. * * @return string */ diff --git a/Acl/Domain/ObjectIdentityRetrievalStrategy.php b/Acl/Domain/ObjectIdentityRetrievalStrategy.php index fc66856..21ac812 100644 --- a/Acl/Domain/ObjectIdentityRetrievalStrategy.php +++ b/Acl/Domain/ObjectIdentityRetrievalStrategy.php @@ -15,7 +15,7 @@ use Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException; use Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface; /** - * Strategy to be used for retrieving object identities from domain objects + * Strategy to be used for retrieving object identities from domain objects. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Acl/Domain/PermissionGrantingStrategy.php b/Acl/Domain/PermissionGrantingStrategy.php index 5d91f61..ef80a20 100644 --- a/Acl/Domain/PermissionGrantingStrategy.php +++ b/Acl/Domain/PermissionGrantingStrategy.php @@ -32,7 +32,7 @@ class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface private $auditLogger; /** - * Sets the audit logger + * Sets the audit logger. * * @param AuditLoggerInterface $auditLogger */ diff --git a/Acl/Domain/RoleSecurityIdentity.php b/Acl/Domain/RoleSecurityIdentity.php index 64f864d..5410a46 100644 --- a/Acl/Domain/RoleSecurityIdentity.php +++ b/Acl/Domain/RoleSecurityIdentity.php @@ -15,7 +15,7 @@ use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; use Symfony\Component\Security\Core\Role\Role; /** - * A SecurityIdentity implementation for roles + * A SecurityIdentity implementation for roles. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -24,7 +24,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface private $role; /** - * Constructor + * Constructor. * * @param mixed $role a Role instance, or its string representation */ @@ -38,7 +38,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface } /** - * Returns the role name + * Returns the role name. * * @return string */ diff --git a/Acl/Domain/SecurityIdentityRetrievalStrategy.php b/Acl/Domain/SecurityIdentityRetrievalStrategy.php index 43f1d38..708c633 100644 --- a/Acl/Domain/SecurityIdentityRetrievalStrategy.php +++ b/Acl/Domain/SecurityIdentityRetrievalStrategy.php @@ -19,7 +19,7 @@ use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter; /** - * Strategy for retrieving security identities + * Strategy for retrieving security identities. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -29,7 +29,7 @@ class SecurityIdentityRetrievalStrategy implements SecurityIdentityRetrievalStra private $authenticationTrustResolver; /** - * Constructor + * Constructor. * * @param RoleHierarchyInterface $roleHierarchy * @param AuthenticationTrustResolver $authenticationTrustResolver diff --git a/Acl/Domain/UserSecurityIdentity.php b/Acl/Domain/UserSecurityIdentity.php index a5b3d77..e3d9a34 100644 --- a/Acl/Domain/UserSecurityIdentity.php +++ b/Acl/Domain/UserSecurityIdentity.php @@ -17,7 +17,7 @@ use Symfony\Component\Security\Core\Util\ClassUtils; use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; /** - * A SecurityIdentity implementation used for actual users + * A SecurityIdentity implementation used for actual users. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -27,7 +27,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface private $class; /** - * Constructor + * Constructor. * * @param string $username the username representation * @param string $class the user's fully qualified class name @@ -48,7 +48,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface } /** - * Creates a user security identity from a UserInterface + * Creates a user security identity from a UserInterface. * * @param UserInterface $user * @@ -60,7 +60,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface } /** - * Creates a user security identity from a TokenInterface + * Creates a user security identity from a TokenInterface. * * @param TokenInterface $token * @@ -78,7 +78,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface } /** - * Returns the username + * Returns the username. * * @return string */ @@ -88,7 +88,7 @@ final class UserSecurityIdentity implements SecurityIdentityInterface } /** - * Returns the user's class name + * Returns the user's class name. * * @return string */ diff --git a/Acl/Exception/Exception.php b/Acl/Exception/Exception.php index d381c57..a38c8ee 100644 --- a/Acl/Exception/Exception.php +++ b/Acl/Exception/Exception.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Security\Acl\Exception; /** - * Base ACL exception + * Base ACL exception. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Acl/Exception/NotAllAclsFoundException.php b/Acl/Exception/NotAllAclsFoundException.php index 3c02495..a634382 100644 --- a/Acl/Exception/NotAllAclsFoundException.php +++ b/Acl/Exception/NotAllAclsFoundException.php @@ -25,7 +25,7 @@ class NotAllAclsFoundException extends AclNotFoundException private $partialResult; /** - * Sets the partial result + * Sets the partial result. * * @param \SplObjectStorage $result */ @@ -35,7 +35,7 @@ class NotAllAclsFoundException extends AclNotFoundException } /** - * Returns the partial result + * Returns the partial result. * * @return \SplObjectStorage */ diff --git a/Acl/Model/AclCacheInterface.php b/Acl/Model/AclCacheInterface.php index 03431db..1e74585 100644 --- a/Acl/Model/AclCacheInterface.php +++ b/Acl/Model/AclCacheInterface.php @@ -12,21 +12,21 @@ namespace Symfony\Component\Security\Acl\Model; /** - * AclCache Interface + * AclCache Interface. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ interface AclCacheInterface { /** - * Removes an ACL from the cache + * Removes an ACL from the cache. * * @param string $primaryKey a serialized primary key */ public function evictFromCacheById($primaryKey); /** - * Removes an ACL from the cache + * Removes an ACL from the cache. * * The ACL which is returned, must reference the passed object identity. * @@ -35,7 +35,7 @@ interface AclCacheInterface public function evictFromCacheByIdentity(ObjectIdentityInterface $oid); /** - * Retrieves an ACL for the given object identity primary key from the cache + * Retrieves an ACL for the given object identity primary key from the cache. * * @param int $primaryKey * @@ -44,7 +44,7 @@ interface AclCacheInterface public function getFromCacheById($primaryKey); /** - * Retrieves an ACL for the given object identity from the cache + * Retrieves an ACL for the given object identity from the cache. * * @param ObjectIdentityInterface $oid * @@ -53,14 +53,14 @@ interface AclCacheInterface public function getFromCacheByIdentity(ObjectIdentityInterface $oid); /** - * Stores a new ACL in the cache + * Stores a new ACL in the cache. * * @param AclInterface $acl */ public function putInCache(AclInterface $acl); /** - * Removes all ACLs from the cache + * Removes all ACLs from the cache. */ public function clearCache(); } diff --git a/Acl/Model/AclInterface.php b/Acl/Model/AclInterface.php index c5bbf18..6a70a7c 100644 --- a/Acl/Model/AclInterface.php +++ b/Acl/Model/AclInterface.php @@ -26,14 +26,14 @@ use Symfony\Component\Security\Acl\Exception\NoAceFoundException; interface AclInterface extends \Serializable { /** - * Returns all class-based ACEs associated with this ACL + * Returns all class-based ACEs associated with this ACL. * * @return array */ public function getClassAces(); /** - * Returns all class-field-based ACEs associated with this ACL + * Returns all class-field-based ACEs associated with this ACL. * * @param string $field * @@ -42,14 +42,14 @@ interface AclInterface extends \Serializable public function getClassFieldAces($field); /** - * Returns all object-based ACEs associated with this ACL + * Returns all object-based ACEs associated with this ACL. * * @return array */ public function getObjectAces(); /** - * Returns all object-field-based ACEs associated with this ACL + * Returns all object-field-based ACEs associated with this ACL. * * @param string $field * @@ -58,7 +58,7 @@ interface AclInterface extends \Serializable public function getObjectFieldAces($field); /** - * Returns the object identity associated with this ACL + * Returns the object identity associated with this ACL. * * @return ObjectIdentityInterface */ @@ -79,7 +79,7 @@ interface AclInterface extends \Serializable public function isEntriesInheriting(); /** - * Determines whether field access is granted + * Determines whether field access is granted. * * @param string $field * @param array $masks @@ -91,7 +91,7 @@ interface AclInterface extends \Serializable public function isFieldGranted($field, array $masks, array $securityIdentities, $administrativeMode = false); /** - * Determines whether access is granted + * Determines whether access is granted. * * @param array $masks * @param array $securityIdentities @@ -104,7 +104,7 @@ interface AclInterface extends \Serializable public function isGranted(array $masks, array $securityIdentities, $administrativeMode = false); /** - * Whether the ACL has loaded ACEs for all of the passed security identities + * Whether the ACL has loaded ACEs for all of the passed security identities. * * @param mixed $securityIdentities an implementation of SecurityIdentityInterface, or an array thereof * diff --git a/Acl/Model/AclProviderInterface.php b/Acl/Model/AclProviderInterface.php index dd8fb19..f9b41cb 100644 --- a/Acl/Model/AclProviderInterface.php +++ b/Acl/Model/AclProviderInterface.php @@ -21,7 +21,7 @@ use Symfony\Component\Security\Acl\Exception\AclNotFoundException; interface AclProviderInterface { /** - * Retrieves all child object identities from the database + * Retrieves all child object identities from the database. * * @param ObjectIdentityInterface $parentOid * @param bool $directChildrenOnly @@ -31,7 +31,7 @@ interface AclProviderInterface public function findChildren(ObjectIdentityInterface $parentOid, $directChildrenOnly = false); /** - * Returns the ACL that belongs to the given object identity + * Returns the ACL that belongs to the given object identity. * * @param ObjectIdentityInterface $oid * @param SecurityIdentityInterface[] $sids @@ -43,7 +43,7 @@ interface AclProviderInterface public function findAcl(ObjectIdentityInterface $oid, array $sids = array()); /** - * Returns the ACLs that belong to the given object identities + * Returns the ACLs that belong to the given object identities. * * @param ObjectIdentityInterface[] $oids an array of ObjectIdentityInterface implementations * @param SecurityIdentityInterface[] $sids an array of SecurityIdentityInterface implementations diff --git a/Acl/Model/AuditLoggerInterface.php b/Acl/Model/AuditLoggerInterface.php index 11fe7f5..fde4de6 100644 --- a/Acl/Model/AuditLoggerInterface.php +++ b/Acl/Model/AuditLoggerInterface.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Security\Acl\Model; /** - * Interface for audit loggers + * Interface for audit loggers. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Acl/Model/AuditableAclInterface.php b/Acl/Model/AuditableAclInterface.php index 80b9987..e7a60e5 100644 --- a/Acl/Model/AuditableAclInterface.php +++ b/Acl/Model/AuditableAclInterface.php @@ -19,7 +19,7 @@ namespace Symfony\Component\Security\Acl\Model; interface AuditableAclInterface extends MutableAclInterface { /** - * Updates auditing for class-based ACE + * Updates auditing for class-based ACE. * * @param int $index * @param bool $auditSuccess @@ -28,7 +28,7 @@ interface AuditableAclInterface extends MutableAclInterface public function updateClassAuditing($index, $auditSuccess, $auditFailure); /** - * Updates auditing for class-field-based ACE + * Updates auditing for class-field-based ACE. * * @param int $index * @param string $field @@ -38,7 +38,7 @@ interface AuditableAclInterface extends MutableAclInterface public function updateClassFieldAuditing($index, $field, $auditSuccess, $auditFailure); /** - * Updates auditing for object-based ACE + * Updates auditing for object-based ACE. * * @param int $index * @param bool $auditSuccess @@ -47,7 +47,7 @@ interface AuditableAclInterface extends MutableAclInterface public function updateObjectAuditing($index, $auditSuccess, $auditFailure); /** - * Updates auditing for object-field-based ACE + * Updates auditing for object-field-based ACE. * * @param int $index * @param string $field diff --git a/Acl/Model/AuditableEntryInterface.php b/Acl/Model/AuditableEntryInterface.php index 509acda..9561577 100644 --- a/Acl/Model/AuditableEntryInterface.php +++ b/Acl/Model/AuditableEntryInterface.php @@ -19,14 +19,14 @@ namespace Symfony\Component\Security\Acl\Model; interface AuditableEntryInterface extends EntryInterface { /** - * Whether auditing for successful grants is turned on + * Whether auditing for successful grants is turned on. * * @return bool */ public function isAuditFailure(); /** - * Whether auditing for successful denies is turned on + * Whether auditing for successful denies is turned on. * * @return bool */ diff --git a/Acl/Model/EntryInterface.php b/Acl/Model/EntryInterface.php index b33f1f0..0b244b7 100644 --- a/Acl/Model/EntryInterface.php +++ b/Acl/Model/EntryInterface.php @@ -29,35 +29,35 @@ interface EntryInterface extends \Serializable public function getAcl(); /** - * The primary key of this ACE + * The primary key of this ACE. * * @return int */ public function getId(); /** - * The permission mask of this ACE + * The permission mask of this ACE. * * @return int */ public function getMask(); /** - * The security identity associated with this ACE + * The security identity associated with this ACE. * * @return SecurityIdentityInterface */ public function getSecurityIdentity(); /** - * The strategy for comparing masks + * The strategy for comparing masks. * * @return string */ public function getStrategy(); /** - * Returns whether this ACE is granting, or denying + * Returns whether this ACE is granting, or denying. * * @return bool */ diff --git a/Acl/Model/FieldEntryInterface.php b/Acl/Model/FieldEntryInterface.php index 8382ae1..ae2f808 100644 --- a/Acl/Model/FieldEntryInterface.php +++ b/Acl/Model/FieldEntryInterface.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Security\Acl\Model; /** - * Interface for entries which are restricted to specific fields + * Interface for entries which are restricted to specific fields. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Acl/Model/MutableAclInterface.php b/Acl/Model/MutableAclInterface.php index f94e909..2ba7bd5 100644 --- a/Acl/Model/MutableAclInterface.php +++ b/Acl/Model/MutableAclInterface.php @@ -22,14 +22,14 @@ namespace Symfony\Component\Security\Acl\Model; interface MutableAclInterface extends AclInterface { /** - * Deletes a class-based ACE + * Deletes a class-based ACE. * * @param int $index */ public function deleteClassAce($index); /** - * Deletes a class-field-based ACE + * Deletes a class-field-based ACE. * * @param int $index * @param string $field @@ -37,14 +37,14 @@ interface MutableAclInterface extends AclInterface public function deleteClassFieldAce($index, $field); /** - * Deletes an object-based ACE + * Deletes an object-based ACE. * * @param int $index */ public function deleteObjectAce($index); /** - * Deletes an object-field-based ACE + * Deletes an object-field-based ACE. * * @param int $index * @param string $field @@ -52,14 +52,14 @@ interface MutableAclInterface extends AclInterface public function deleteObjectFieldAce($index, $field); /** - * Returns the primary key of this ACL + * Returns the primary key of this ACL. * * @return int */ public function getId(); /** - * Inserts a class-based ACE + * Inserts a class-based ACE. * * @param SecurityIdentityInterface $sid * @param int $mask @@ -70,7 +70,7 @@ interface MutableAclInterface extends AclInterface public function insertClassAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null); /** - * Inserts a class-field-based ACE + * Inserts a class-field-based ACE. * * @param string $field * @param SecurityIdentityInterface $sid @@ -82,7 +82,7 @@ interface MutableAclInterface extends AclInterface public function insertClassFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null); /** - * Inserts an object-based ACE + * Inserts an object-based ACE. * * @param SecurityIdentityInterface $sid * @param int $mask @@ -93,7 +93,7 @@ interface MutableAclInterface extends AclInterface public function insertObjectAce(SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null); /** - * Inserts an object-field-based ACE + * Inserts an object-field-based ACE. * * @param string $field * @param SecurityIdentityInterface $sid @@ -105,21 +105,21 @@ interface MutableAclInterface extends AclInterface public function insertObjectFieldAce($field, SecurityIdentityInterface $sid, $mask, $index = 0, $granting = true, $strategy = null); /** - * Sets whether entries are inherited + * Sets whether entries are inherited. * * @param bool $boolean */ public function setEntriesInheriting($boolean); /** - * Sets the parent ACL + * Sets the parent ACL. * * @param AclInterface|null $acl */ public function setParentAcl(AclInterface $acl = null); /** - * Updates a class-based ACE + * Updates a class-based ACE. * * @param int $index * @param int $mask @@ -128,7 +128,7 @@ interface MutableAclInterface extends AclInterface public function updateClassAce($index, $mask, $strategy = null); /** - * Updates a class-field-based ACE + * Updates a class-field-based ACE. * * @param int $index * @param string $field @@ -138,7 +138,7 @@ interface MutableAclInterface extends AclInterface public function updateClassFieldAce($index, $field, $mask, $strategy = null); /** - * Updates an object-based ACE + * Updates an object-based ACE. * * @param int $index * @param int $mask @@ -147,7 +147,7 @@ interface MutableAclInterface extends AclInterface public function updateObjectAce($index, $mask, $strategy = null); /** - * Updates an object-field-based ACE + * Updates an object-field-based ACE. * * @param int $index * @param string $field diff --git a/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php b/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php index d5470ae..542066a 100644 --- a/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php +++ b/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php @@ -12,14 +12,14 @@ namespace Symfony\Component\Security\Acl\Model; /** - * Retrieves the object identity for a given domain object + * Retrieves the object identity for a given domain object. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ interface ObjectIdentityRetrievalStrategyInterface { /** - * Retrieves the object identity from a domain object + * Retrieves the object identity from a domain object. * * @param object $domainObject * diff --git a/Acl/Model/PermissionGrantingStrategyInterface.php b/Acl/Model/PermissionGrantingStrategyInterface.php index 7ff475f..fa3430d 100644 --- a/Acl/Model/PermissionGrantingStrategyInterface.php +++ b/Acl/Model/PermissionGrantingStrategyInterface.php @@ -19,7 +19,7 @@ namespace Symfony\Component\Security\Acl\Model; interface PermissionGrantingStrategyInterface { /** - * Determines whether access to a domain object is to be granted + * Determines whether access to a domain object is to be granted. * * @param AclInterface $acl * @param array $masks @@ -31,7 +31,7 @@ interface PermissionGrantingStrategyInterface public function isGranted(AclInterface $acl, array $masks, array $sids, $administrativeMode = false); /** - * Determines whether access to a domain object's field is to be granted + * Determines whether access to a domain object's field is to be granted. * * @param AclInterface $acl * @param string $field diff --git a/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php b/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php index 5bb7915..b5fcb75 100644 --- a/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php +++ b/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php @@ -14,14 +14,14 @@ namespace Symfony\Component\Security\Acl\Model; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; /** - * Interface for retrieving security identities from tokens + * Interface for retrieving security identities from tokens. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ interface SecurityIdentityRetrievalStrategyInterface { /** - * Retrieves the available security identities for the given token + * Retrieves the available security identities for the given token. * * The order in which the security identities are returned is significant. * Typically, security identities should be ordered from most specific to diff --git a/Acl/Permission/MaskBuilder.php b/Acl/Permission/MaskBuilder.php index 89cfd39..39fe4e7 100644 --- a/Acl/Permission/MaskBuilder.php +++ b/Acl/Permission/MaskBuilder.php @@ -70,7 +70,7 @@ class MaskBuilder private $mask; /** - * Constructor + * Constructor. * * @param int $mask optional; defaults to 0 * @@ -86,7 +86,7 @@ class MaskBuilder } /** - * Adds a mask to the permission + * Adds a mask to the permission. * * @param mixed $mask * @@ -108,7 +108,7 @@ class MaskBuilder } /** - * Returns the mask of this permission + * Returns the mask of this permission. * * @return int */ @@ -118,7 +118,7 @@ class MaskBuilder } /** - * Returns a human-readable representation of the permission + * Returns a human-readable representation of the permission. * * @return string */ @@ -142,7 +142,7 @@ class MaskBuilder } /** - * Removes a mask from the permission + * Removes a mask from the permission. * * @param mixed $mask * @@ -164,7 +164,7 @@ class MaskBuilder } /** - * Resets the PermissionBuilder + * Resets the PermissionBuilder. * * @return MaskBuilder */ @@ -176,7 +176,7 @@ class MaskBuilder } /** - * Returns the code for the passed mask + * Returns the code for the passed mask. * * @param int $mask * diff --git a/Acl/Permission/PermissionMapInterface.php b/Acl/Permission/PermissionMapInterface.php index 1b2a7fd..0b2f1ce 100644 --- a/Acl/Permission/PermissionMapInterface.php +++ b/Acl/Permission/PermissionMapInterface.php @@ -32,7 +32,7 @@ interface PermissionMapInterface public function getMasks($permission, $object); /** - * Whether this map contains the given permission + * Whether this map contains the given permission. * * @param string $permission * diff --git a/Core/Authentication/AuthenticationTrustResolver.php b/Core/Authentication/AuthenticationTrustResolver.php index d030459..c66661a 100644 --- a/Core/Authentication/AuthenticationTrustResolver.php +++ b/Core/Authentication/AuthenticationTrustResolver.php @@ -24,7 +24,7 @@ class AuthenticationTrustResolver implements AuthenticationTrustResolverInterfac private $rememberMeClass; /** - * Constructor + * Constructor. * * @param string $anonymousClass * @param string $rememberMeClass diff --git a/Core/Authentication/RememberMe/PersistentToken.php b/Core/Authentication/RememberMe/PersistentToken.php index 5df71ec..92fcb4f 100644 --- a/Core/Authentication/RememberMe/PersistentToken.php +++ b/Core/Authentication/RememberMe/PersistentToken.php @@ -25,7 +25,7 @@ final class PersistentToken implements PersistentTokenInterface private $lastUsed; /** - * Constructor + * Constructor. * * @param string $class * @param string $username diff --git a/Core/Authentication/RememberMe/PersistentTokenInterface.php b/Core/Authentication/RememberMe/PersistentTokenInterface.php index ad52753..ba31ffa 100644 --- a/Core/Authentication/RememberMe/PersistentTokenInterface.php +++ b/Core/Authentication/RememberMe/PersistentTokenInterface.php @@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Authentication\RememberMe; /** * Interface to be implemented by persistent token classes (such as - * Doctrine entities representing a remember-me token) + * Doctrine entities representing a remember-me token). * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Core/Authentication/RememberMe/TokenProviderInterface.php b/Core/Authentication/RememberMe/TokenProviderInterface.php index 67d0bdd..c2d860e 100644 --- a/Core/Authentication/RememberMe/TokenProviderInterface.php +++ b/Core/Authentication/RememberMe/TokenProviderInterface.php @@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Core\Authentication\RememberMe; use Symfony\Component\Security\Core\Exception\TokenNotFoundException; /** - * Interface for TokenProviders + * Interface for TokenProviders. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Core/Encoder/BCryptPasswordEncoder.php b/Core/Encoder/BCryptPasswordEncoder.php index f62e8f5..d2b0319 100644 --- a/Core/Encoder/BCryptPasswordEncoder.php +++ b/Core/Encoder/BCryptPasswordEncoder.php @@ -52,6 +52,7 @@ class BCryptPasswordEncoder extends BasePasswordEncoder * It doesn't work with PHP versions lower than 5.3.7, since * the password compat library uses CRYPT_BLOWFISH hash type with * the "$2y$" salt prefix (which is not available in the early PHP versions). + * * @see https://github.com/ircmaxell/password_compat/issues/10#issuecomment-11203833 * * It is almost best to **not** pass a salt and let PHP generate one for you. diff --git a/Core/Encoder/EncoderFactory.php b/Core/Encoder/EncoderFactory.php index 0337380..5f6c20c 100644 --- a/Core/Encoder/EncoderFactory.php +++ b/Core/Encoder/EncoderFactory.php @@ -12,7 +12,7 @@ namespace Symfony\Component\Security\Core\Encoder; /** - * A generic encoder factory implementation + * A generic encoder factory implementation. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -46,7 +46,7 @@ class EncoderFactory implements EncoderFactoryInterface } /** - * Creates the actual encoder instance + * Creates the actual encoder instance. * * @param array $config * diff --git a/Core/User/UserProviderInterface.php b/Core/User/UserProviderInterface.php index 6b7895c..d17e3b7 100644 --- a/Core/User/UserProviderInterface.php +++ b/Core/User/UserProviderInterface.php @@ -46,7 +46,6 @@ interface UserProviderInterface * @see UsernameNotFoundException * * @throws UsernameNotFoundException if the user is not found - * */ public function loadUserByUsername($username); @@ -57,6 +56,7 @@ interface UserProviderInterface * totally reloaded (e.g. from the database), or if the UserInterface * object can just be merged into some internal array of users / identity * map. + * * @param UserInterface $user * * @return UserInterface @@ -66,7 +66,7 @@ interface UserProviderInterface public function refreshUser(UserInterface $user); /** - * Whether this provider supports the given user class + * Whether this provider supports the given user class. * * @param string $class * diff --git a/Core/Util/ClassUtils.php b/Core/Util/ClassUtils.php index 1d40c8d..0585204 100644 --- a/Core/Util/ClassUtils.php +++ b/Core/Util/ClassUtils.php @@ -30,14 +30,14 @@ class ClassUtils const MARKER = '__CG__'; /** - * Length of the proxy marker + * Length of the proxy marker. * * @var int */ const MARKER_LENGTH = 6; /** - * This class should not be instantiated + * This class should not be instantiated. */ private function __construct() { @@ -47,6 +47,7 @@ class ClassUtils * Gets the real class name of a class name that could be a proxy. * * @param string|object + * * @return string */ public static function getRealClass($object) diff --git a/Core/Util/StringUtils.php b/Core/Util/StringUtils.php index f326fe0..e8f3e3b 100644 --- a/Core/Util/StringUtils.php +++ b/Core/Util/StringUtils.php @@ -19,7 +19,7 @@ namespace Symfony\Component\Security\Core\Util; class StringUtils { /** - * This class should not be instantiated + * This class should not be instantiated. */ private function __construct() { diff --git a/Http/Authentication/AuthenticationSuccessHandlerInterface.php b/Http/Authentication/AuthenticationSuccessHandlerInterface.php index 9ec64b4..d0b3cb6 100644 --- a/Http/Authentication/AuthenticationSuccessHandlerInterface.php +++ b/Http/Authentication/AuthenticationSuccessHandlerInterface.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; /** - * Interface for a custom authentication success handler + * Interface for a custom authentication success handler. * * If you want to customize the success handling process, instead of * overwriting the respective listener globally, you can set a custom success diff --git a/Http/Event/InteractiveLoginEvent.php b/Http/Event/InteractiveLoginEvent.php index 575352c..b5ac242 100644 --- a/Http/Event/InteractiveLoginEvent.php +++ b/Http/Event/InteractiveLoginEvent.php @@ -16,7 +16,7 @@ use Symfony\Component\EventDispatcher\Event; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; /** - * InteractiveLoginEvent + * InteractiveLoginEvent. * * @author Fabien Potencier <fabien@symfony.com> */ diff --git a/Http/Event/SwitchUserEvent.php b/Http/Event/SwitchUserEvent.php index a553154..7cf94a7 100644 --- a/Http/Event/SwitchUserEvent.php +++ b/Http/Event/SwitchUserEvent.php @@ -16,7 +16,7 @@ use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\EventDispatcher\Event; /** - * SwitchUserEvent + * SwitchUserEvent. * * @author Fabien Potencier <fabien@symfony.com> */ diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php index 2b3d386..f71089f 100644 --- a/Http/Firewall/AbstractAuthenticationListener.php +++ b/Http/Firewall/AbstractAuthenticationListener.php @@ -108,7 +108,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface } /** - * Sets the RememberMeServices implementation to use + * Sets the RememberMeServices implementation to use. * * @param RememberMeServicesInterface $rememberMeServices */ diff --git a/Http/Firewall/AbstractPreAuthenticatedListener.php b/Http/Firewall/AbstractPreAuthenticatedListener.php index 94ae901..895df53 100644 --- a/Http/Firewall/AbstractPreAuthenticatedListener.php +++ b/Http/Firewall/AbstractPreAuthenticatedListener.php @@ -96,7 +96,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface } /** - * Clears a PreAuthenticatedToken for this provider (if present) + * Clears a PreAuthenticatedToken for this provider (if present). * * @param AuthenticationException $exception */ diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php index c4b0a1e..3ea6512 100644 --- a/Http/Firewall/ContextListener.php +++ b/Http/Firewall/ContextListener.php @@ -135,7 +135,7 @@ class ContextListener implements ListenerInterface } /** - * Refreshes the user by reloading it from the user provider + * Refreshes the user by reloading it from the user provider. * * @param TokenInterface $token * diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index e7e2989..58564dd 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -165,6 +165,7 @@ class ExceptionListener * @param AuthenticationException $authException * * @return Response + * * @throws AuthenticationException */ private function startAuthentication(Request $request, AuthenticationException $authException) diff --git a/Http/Firewall/ListenerInterface.php b/Http/Firewall/ListenerInterface.php index b670474..0fc8d11 100644 --- a/Http/Firewall/ListenerInterface.php +++ b/Http/Firewall/ListenerInterface.php @@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Http\Firewall; use Symfony\Component\HttpKernel\Event\GetResponseEvent; /** - * Interface that must be implemented by firewall listeners + * Interface that must be implemented by firewall listeners. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Http/Firewall/LogoutListener.php b/Http/Firewall/LogoutListener.php index a558c2c..5a68670 100644 --- a/Http/Firewall/LogoutListener.php +++ b/Http/Firewall/LogoutListener.php @@ -59,7 +59,7 @@ class LogoutListener implements ListenerInterface } /** - * Adds a logout handler + * Adds a logout handler. * * @param LogoutHandlerInterface $handler */ @@ -69,7 +69,7 @@ class LogoutListener implements ListenerInterface } /** - * Performs the logout if requested + * Performs the logout if requested. * * If a CsrfProviderInterface instance is available, it will be used to * validate the request. diff --git a/Http/Firewall/RememberMeListener.php b/Http/Firewall/RememberMeListener.php index 6ca3842..beacff3 100644 --- a/Http/Firewall/RememberMeListener.php +++ b/Http/Firewall/RememberMeListener.php @@ -22,7 +22,7 @@ use Symfony\Component\Security\Http\SecurityEvents; use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** - * RememberMeListener implements authentication capabilities via a cookie + * RememberMeListener implements authentication capabilities via a cookie. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ diff --git a/Http/Logout/SessionLogoutHandler.php b/Http/Logout/SessionLogoutHandler.php index e91cf17..e036c5f 100644 --- a/Http/Logout/SessionLogoutHandler.php +++ b/Http/Logout/SessionLogoutHandler.php @@ -23,7 +23,7 @@ use Symfony\Component\HttpFoundation\Request; class SessionLogoutHandler implements LogoutHandlerInterface { /** - * Invalidate the current session + * Invalidate the current session. * * @param Request $request * @param Response $response diff --git a/Http/RememberMe/AbstractRememberMeServices.php b/Http/RememberMe/AbstractRememberMeServices.php index b868dae..659510a 100644 --- a/Http/RememberMe/AbstractRememberMeServices.php +++ b/Http/RememberMe/AbstractRememberMeServices.php @@ -25,7 +25,7 @@ use Symfony\Component\HttpFoundation\Cookie; use Psr\Log\LoggerInterface; /** - * Base class implementing the RememberMeServicesInterface + * Base class implementing the RememberMeServicesInterface. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ @@ -251,7 +251,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface } /** - * Decodes the raw cookie value + * Decodes the raw cookie value. * * @param string $rawCookie * @@ -263,7 +263,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface } /** - * Encodes the cookie parts + * Encodes the cookie parts. * * @param array $cookieParts * @@ -275,7 +275,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface } /** - * Deletes the remember-me cookie + * Deletes the remember-me cookie. * * @param Request $request */ @@ -289,7 +289,7 @@ abstract class AbstractRememberMeServices implements RememberMeServicesInterface } /** - * Checks whether remember-me capabilities were requested + * Checks whether remember-me capabilities were requested. * * @param Request $request * diff --git a/Http/RememberMe/PersistentTokenBasedRememberMeServices.php b/Http/RememberMe/PersistentTokenBasedRememberMeServices.php index 12478dc..d0a70b7 100644 --- a/Http/RememberMe/PersistentTokenBasedRememberMeServices.php +++ b/Http/RememberMe/PersistentTokenBasedRememberMeServices.php @@ -52,7 +52,7 @@ class PersistentTokenBasedRememberMeServices extends AbstractRememberMeServices } /** - * Sets the token provider + * Sets the token provider. * * @param TokenProviderInterface $tokenProvider */ diff --git a/Http/RememberMe/TokenBasedRememberMeServices.php b/Http/RememberMe/TokenBasedRememberMeServices.php index 132831e..8283a7c 100644 --- a/Http/RememberMe/TokenBasedRememberMeServices.php +++ b/Http/RememberMe/TokenBasedRememberMeServices.php @@ -134,7 +134,7 @@ class TokenBasedRememberMeServices extends AbstractRememberMeServices } /** - * Generates a hash for the cookie to ensure it is not being tempered with + * Generates a hash for the cookie to ensure it is not being tempered with. * * @param string $class * @param string $username The username diff --git a/Http/Session/SessionAuthenticationStrategyInterface.php b/Http/Session/SessionAuthenticationStrategyInterface.php index 2bc292b..9cb95d8 100644 --- a/Http/Session/SessionAuthenticationStrategyInterface.php +++ b/Http/Session/SessionAuthenticationStrategyInterface.php @@ -15,7 +15,7 @@ use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\HttpFoundation\Request; /** - * SessionAuthenticationStrategyInterface + * SessionAuthenticationStrategyInterface. * * Implementation are responsible for updating the session after an interactive * authentication attempt was successful. diff --git a/Tests/Acl/Dbal/MutableAclProviderTest.php b/Tests/Acl/Dbal/MutableAclProviderTest.php index 3f60efa..21ea670 100644 --- a/Tests/Acl/Dbal/MutableAclProviderTest.php +++ b/Tests/Acl/Dbal/MutableAclProviderTest.php @@ -411,6 +411,8 @@ class MutableAclProviderTest extends \PHPUnit_Framework_TestCase } /** + * Imports acls. + * * Data must have the following format: * array( * *name* => array( diff --git a/Tests/Core/Util/SecureRandomTest.php b/Tests/Core/Util/SecureRandomTest.php index 05b4b02..bd9fec5 100644 --- a/Tests/Core/Util/SecureRandomTest.php +++ b/Tests/Core/Util/SecureRandomTest.php @@ -16,7 +16,7 @@ use Symfony\Component\Security\Core\Util\SecureRandom; class SecureRandomTest extends \PHPUnit_Framework_TestCase { /** - * T1: Monobit test + * T1: Monobit test. * * @dataProvider getSecureRandoms */ @@ -27,7 +27,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase } /** - * T2: Chi-square test with 15 degrees of freedom (chi-Quadrat-Anpassungstest) + * T2: Chi-square test with 15 degrees of freedom (chi-Quadrat-Anpassungstest). * * @dataProvider getSecureRandoms */ @@ -55,7 +55,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase } /** - * Run test + * Run test. * * @dataProvider getSecureRandoms */ @@ -103,7 +103,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase } /** - * Long-run test + * Long-run test. * * @dataProvider getSecureRandoms */ @@ -132,7 +132,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase } /** - * Serial Correlation (Autokorrelationstest) + * Serial Correlation (Autokorrelationstest). * * @dataProvider getSecureRandoms */ diff --git a/Tests/Core/Util/StringUtilsTest.php b/Tests/Core/Util/StringUtilsTest.php index b16cbac..3b18d48 100644 --- a/Tests/Core/Util/StringUtilsTest.php +++ b/Tests/Core/Util/StringUtilsTest.php @@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Tests\Core\Util; use Symfony\Component\Security\Core\Util\StringUtils; /** - * Data from PHP.net's hash_equals tests + * Data from PHP.net's hash_equals tests. */ class StringUtilsTest extends \PHPUnit_Framework_TestCase { |