diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php index 563cc5d..725887c 100644 --- a/core/modules/comment/comment.api.php +++ b/core/modules/comment/comment.api.php @@ -1,14 +1,13 @@ FALSE); return $options; } - + /** + * {@inheritdoc} + */ public function buildOptionsForm(&$form, FormStateInterface $form_state) { parent::buildOptionsForm($form, $form_state); diff --git a/core/modules/comment/src/Plugin/views/field/LinkReply.php b/core/modules/comment/src/Plugin/views/field/LinkReply.php index 65c7545..eac384b 100644 --- a/core/modules/comment/src/Plugin/views/field/LinkReply.php +++ b/core/modules/comment/src/Plugin/views/field/LinkReply.php @@ -7,6 +7,7 @@ namespace Drupal\comment\Plugin\views\field; +use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Url; use Drupal\views\ResultRow; diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php index d3cd089..55be79e 100644 --- a/core/modules/comment/src/Tests/CommentNonNodeTest.php +++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php @@ -100,13 +100,14 @@ protected function setUp() { * * @param \Drupal\Core\Entity\EntityInterface|null $entity * Entity to post comment on or NULL to post to the previously loaded page. - * @param $comment + * @param string $comment * Comment body. - * @param $subject + * @param (optional) Comment $subject * Comment subject. - * @param $contact - * Set to NULL for no contact info, TRUE to ignore success checking, and + * @param array|bool|NULL $contact + * (optional) Set to NULL for no contact info, TRUE to ignore success checking, and * array of values to set contact info. + * @return EntityInterface|null */ function postComment(EntityInterface $entity, $comment, $subject = '', $contact = NULL) { $edit = array(); @@ -177,7 +178,7 @@ function postComment(EntityInterface $entity, $comment, $subject = '', $contact * @param bool $reply * Boolean indicating whether the comment is a reply to another comment. * - * @return boolean + * @return bool * Boolean indicating whether the comment was found. */ function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { @@ -198,7 +199,7 @@ function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { /** * Checks whether the commenter's contact information is displayed. * - * @return boolean + * @return bool * Contact info is available. */ function commentContactInfoAvailable() { @@ -236,7 +237,7 @@ function performCommentOperation($comment, $operation, $approval = FALSE) { * @param string $subject * Comment subject to find. * - * @return integer + * @return int * Comment ID. */ function getUnapprovedComment($subject) { diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php index 92fc9ff..6fc3633 100644 --- a/core/modules/comment/src/Tests/CommentPagerTest.php +++ b/core/modules/comment/src/Tests/CommentPagerTest.php @@ -173,10 +173,11 @@ function testCommentOrderingThreading() { /** * Asserts that the comments are displayed in the correct order. * - * @param $comments + * @param array $comments * And array of comments. - * @param $expected_order + * @param array $expected_order * An array of keys from $comments describing the expected order. + * @return bool */ function assertCommentOrder(array $comments, array $expected_order) { $expected_cids = array(); diff --git a/core/modules/comment/src/Tests/CommentTestBase.php b/core/modules/comment/src/Tests/CommentTestBase.php index ecc999a..d7dd408 100644 --- a/core/modules/comment/src/Tests/CommentTestBase.php +++ b/core/modules/comment/src/Tests/CommentTestBase.php @@ -182,7 +182,7 @@ public function postComment($entity, $comment, $subject = '', $contact = NULL, $ * @param bool $reply * Boolean indicating whether the comment is a reply to another comment. * - * @return boolean + * @return bool * Boolean indicating whether the comment was found. */ function commentExists(CommentInterface $comment = NULL, $reply = FALSE) { @@ -276,7 +276,7 @@ public function setCommentForm($enabled, $field_name = 'comment') { /** * Sets the value governing restrictions on anonymous comments. * - * @param integer $level + * @param int $level * The level of the contact information allowed for anonymous comments: * - 0: No contact information allowed. * - 1: Contact information allowed but not required. @@ -323,7 +323,7 @@ public function setCommentSettings($name, $value, $message, $field_name = 'comme /** * Checks whether the commenter's contact information is displayed. * - * @return boolean + * @return bool * Contact info is available. */ function commentContactInfoAvailable() { @@ -361,7 +361,7 @@ function performCommentOperation(CommentInterface $comment, $operation, $approva * @param string $subject * Comment subject to find. * - * @return integer + * @return int * Comment id. */ function getUnapprovedComment($subject) {