Skip to content
Snippets Groups Projects
Commit ff9f9281 authored by Jasper Lammens's avatar Jasper Lammens
Browse files

#3354790 Remove trailing commas from constructors

parent 1146a88c
Branches 2.x
Tags 2.1.0
1 merge request!5Resolve #3354790 "Coding standards"
Pipeline #262803 passed with warnings
......@@ -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);
......
......@@ -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);
......
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment