diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 6b9a093..7b0d979 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1615,7 +1615,7 @@ function comment_prepare_author(Comment $comment) { // To make them available for rendering in the author object we need to // transpose these values into the $account object. $anonymous_fields = array('name', 'homepage'); - if ($account->uid === 0) { + if ($account->uid == 0) { // Make sure that correct anonymous fields are set if provided. foreach ($anonymous_fields as $field) { if (!empty($comment->{$field}->value)) { diff --git a/core/modules/user/lib/Drupal/user/Plugin/Core/Condition/UserRole.php b/core/modules/user/lib/Drupal/user/Plugin/Core/Condition/UserRole.php index 604d7d6..4939ad1 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Core/Condition/UserRole.php +++ b/core/modules/user/lib/Drupal/user/Plugin/Core/Condition/UserRole.php @@ -31,7 +31,7 @@ class UserRole extends ConditionPluginBase { /** - * Overrides \Drupal\Core\Condition\ConditionPluginBase::buildForm(). + * {@inheritdoc} */ public function buildForm(array $form, array &$form_state) { $form = parent::buildForm($form, $form_state); @@ -47,7 +47,7 @@ public function buildForm(array $form, array &$form_state) { } /** - * Overrides \Drupal\Core\Condition\ConditionPluginBase::validateForm(). + * {@inheritdoc} */ public function validateForm(array &$form, array &$form_state) { foreach ($form_state['values']['roles'] as $role) { @@ -59,7 +59,7 @@ public function validateForm(array &$form, array &$form_state) { } /** - * Overrides \Drupal\Core\Condition\ConditionPluginBase::submitForm(). + * {@inheritdoc} */ public function submitForm(array &$form, array &$form_state) { $this->configuration['roles'] = array_filter($form_state['values']['roles']); @@ -67,7 +67,7 @@ public function submitForm(array &$form, array &$form_state) { } /** - * Implements \Drupal\Core\Executable\ExecutableInterface::summary(). + * {@inheritdoc} */ public function summary() { if (count($this->configuration['roles']) > 1) { @@ -86,7 +86,7 @@ public function summary() { } /** - * Implements \Drupal\condition\ConditionInterface::evaluate(). + * {@inheritdoc} */ public function evaluate() { $user = $this->getContextValue('user');