From ff9f928130314e080a244163f47ccb7a1a3adfbf Mon Sep 17 00:00:00 2001
From: Jasper Lammens <lammensjasper@gmail.com>
Date: Thu, 22 Aug 2024 21:41:17 +0200
Subject: [PATCH] #3354790 Remove trailing commas from constructors

---
 src/Plugin/Condition/SystemTags.php               | 2 +-
 src/SystemTagFinder/SystemTagFinderPluginBase.php | 2 +-
 system_tags.tokens.inc                            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Plugin/Condition/SystemTags.php b/src/Plugin/Condition/SystemTags.php
index f356160..4eab5f9 100644
--- a/src/Plugin/Condition/SystemTags.php
+++ b/src/Plugin/Condition/SystemTags.php
@@ -45,7 +45,7 @@ class SystemTags extends ConditionPluginBase implements ContainerFactoryPluginIn
     array $configuration,
     $plugin_id,
     $plugin_definition,
-    RouteMatchInterface $route_match,
+    RouteMatchInterface $route_match
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 
diff --git a/src/SystemTagFinder/SystemTagFinderPluginBase.php b/src/SystemTagFinder/SystemTagFinderPluginBase.php
index b6765c0..c43463d 100644
--- a/src/SystemTagFinder/SystemTagFinderPluginBase.php
+++ b/src/SystemTagFinder/SystemTagFinderPluginBase.php
@@ -60,7 +60,7 @@ abstract class SystemTagFinderPluginBase extends PluginBase implements SystemTag
     $plugin_definition,
     SystemTagHelperInterface $system_tag_helper,
     EntityTypeManagerInterface $entity_type_manager,
-    LanguageManagerInterface $language_manager,
+    LanguageManagerInterface $language_manager
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 
diff --git a/system_tags.tokens.inc b/system_tags.tokens.inc
index 2bba21d..ccad00d 100644
--- a/system_tags.tokens.inc
+++ b/system_tags.tokens.inc
@@ -58,7 +58,7 @@ function system_tags_tokens($type, array $tokens, array $data, array $options, B
     /** @var \Drupal\path_alias\AliasManagerInterface $path_alias_manager */
     $path_alias_manager = Drupal::service('path_alias.manager');
     foreach ($tokens as $token_id => $original) {
-      list($entity_type, $tag_id) = explode('--', $token_id);
+      [$entity_type, $tag_id] = explode('--', $token_id);
 
       /** @var \Drupal\system_tags\SystemTagFinder\SystemTagFinderInterface $system_tag_finder */
       $system_tag_finder = Drupal::service('plugin.manager.system_tags.system_tag_finder_manager')
-- 
GitLab