diff --git a/core/modules/comment/lib/Drupal/comment/CommentStatisticsInterface.php b/core/modules/comment/lib/Drupal/comment/CommentStatisticsInterface.php index e2b2d93..dc6d9e8 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentStatisticsInterface.php +++ b/core/modules/comment/lib/Drupal/comment/CommentStatisticsInterface.php @@ -26,20 +26,20 @@ public function getRankingInfo(); /** - * Read comment statistics records for an array of entities. + * Reads comment statistics records for an array of entities. * * @param \Drupal\Core\Entity\EntityInterface[] $entities - * Array of entities on which commenting is enabled, keyed by id + * Array of entities on which commenting is enabled, keyed by ID. * @param string $entity_type * The entity type of the passed entities. * - * @return \StdClass[] - * Array of statistics records keyed by entity id. + * @return object[] + * Array of statistics records keyed by entity ID. */ public function read($entities, $entity_type); /** - * Delete comment statistics records for an entity. + * Deletes comment statistics records for an entity. * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity for which comment statistics should be deleted. @@ -47,7 +47,7 @@ public function read($entities, $entity_type); public function delete(EntityInterface $entity); /** - * Update or insert comment statistics records after a comment is added. + * Updates or inserts comment statistics records after a comment is added. * * @param \Drupal\comment\CommentInterface $comment * The comment added or updated. @@ -55,7 +55,7 @@ public function delete(EntityInterface $entity); public function update(CommentInterface $comment); /** - * Find the maximum number of comments for the given entity type. + * Finds the maximum number of comments for the given entity type. * * Used to influence search rankings. * @@ -63,14 +63,14 @@ public function update(CommentInterface $comment); * The entity type to consider when fetching the maximum comment count for. * * @return int - * The maximum number of comments for and entity of the given type. + * The maximum number of comments for an entity of the given type. * * @see comment_update_index() */ public function getMaximumCount($entity_type = 'node'); /** - * Insert an empty record for the given entity. + * Inserts an empty record for the given entity. * * @param \Drupal\Core\Entity\ContentEntityInterface $entity * The created entity for which a statistics record is to be initialized. diff --git a/core/modules/comment/lib/Drupal/comment/CommentStorageController.php b/core/modules/comment/lib/Drupal/comment/CommentStorageController.php index 7ffbfa5..ba4f003 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentStorageController.php +++ b/core/modules/comment/lib/Drupal/comment/CommentStorageController.php @@ -33,7 +33,7 @@ class CommentStorageController extends FieldableDatabaseStorageController implem * Constructs a CommentStorageController object. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info - * An array of entity info for the entity type. + * The comment entity info. * @param \Drupal\Core\Database\Connection $database * The database connection to be used. * @param \Drupal\field\FieldInfo $field_info @@ -58,7 +58,6 @@ public static function createInstance(ContainerInterface $container, EntityTypeI ); } - /** * {@inheritdoc} */