diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 6928f17efd..92037d98d6 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -358,7 +358,7 @@ function forum_taxonomy_term_access(TermInterface $term, $operation, AccountInte // Allow update access to terms in the forum vocabulary with the // administer forums permission. $forum_vid = \Drupal::config('forum.settings')->get('vocabulary'); - if ($operation ==='update' && $term->bundle() === $forum_vid) { + if ($operation === 'update' && $term->bundle() === $forum_vid) { return AccessResult::allowedIfHasPermission($account, 'administer forums'); } diff --git a/core/modules/taxonomy/src/Form/OverviewTerms.php b/core/modules/taxonomy/src/Form/OverviewTerms.php index e4209ebffd..a986c683c8 100644 --- a/core/modules/taxonomy/src/Form/OverviewTerms.php +++ b/core/modules/taxonomy/src/Form/OverviewTerms.php @@ -297,7 +297,7 @@ public function buildForm(array $form, FormStateInterface $form_state, Vocabular $operations_access = TRUE; $form['terms'][$key]['operations'] = [ '#type' => 'operations', - '#links' => $operations + '#links' => $operations, ]; } diff --git a/core/modules/taxonomy/src/TaxonomyPermissions.php b/core/modules/taxonomy/src/TaxonomyPermissions.php index 5ec99844f1..c3c43bc504 100644 --- a/core/modules/taxonomy/src/TaxonomyPermissions.php +++ b/core/modules/taxonomy/src/TaxonomyPermissions.php @@ -58,7 +58,7 @@ public function permissions() { /** * Builds a standard list of taxonomy term permissions for a given vocabulary. * - * @param \Drupal\taxonomy\Entity\Vocabulary + * @param \Drupal\taxonomy\Entity\Vocabulary $vocabulary * The vocabulary. * * @return array diff --git a/core/modules/taxonomy/src/TermListBuilder.php b/core/modules/taxonomy/src/TermListBuilder.php index 0d691e194b..81d859120e 100644 --- a/core/modules/taxonomy/src/TermListBuilder.php +++ b/core/modules/taxonomy/src/TermListBuilder.php @@ -39,7 +39,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI * The entity type definition. * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage class. - * @param \Drupal\Core\Routing\RedirectDestinationInterface + * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination * The redirect destination. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, RedirectDestinationInterface $redirect_destination) { @@ -61,4 +61,5 @@ public function getDefaultOperations(EntityInterface $entity) { return $operations; } + }