diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..4189ad4297d488e067b2164ad00eca36a3a6e9a8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,40 @@ +################ +# GitLabCI template for Drupal projects. +# +# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification. +# It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained. +# As long as you include the project, ref and three files below, any future updates added by the Drupal Association will be used in your +# pipelines automatically. However, you can modify this template if you have additional needs for your project. +# The full documentation is on https://project.pages.drupalcode.org/gitlab_templates/ +################ + +# For information on alternative values for 'ref' see https://project.pages.drupalcode.org/gitlab_templates/info/templates-version/ +# To test a Drupal 7 project, change the first include filename from .main.yml to .main-d7.yml +include: + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - "/includes/include.drupalci.main.yml" + - "/includes/include.drupalci.variables.yml" + - "/includes/include.drupalci.workflows.yml" + +################ +# Pipeline configuration variables are defined with default values and descriptions in the file +# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml +# Uncomment the lines below if you want to override any of the variables. The following is just an example. +################ +variables: + # SKIP_ESLINT: '1' + # SKIP_CSPELL: '1' + # _CURL_TEMPLATES_REF: 'main' + + # Set to '1' to opt in testing against various additional Drupal core versions relative to the current stable version of Drupal. + # Also opting out of testing current release as there are presently no tests. + OPT_IN_TEST_CURRENT: '1' + OPT_IN_TEST_PREVIOUS_MINOR: '0' + OPT_IN_TEST_NEXT_MINOR: '0' + OPT_IN_TEST_PREVIOUS_MAJOR: '0' + OPT_IN_TEST_NEXT_MAJOR: '0' + + # Set to 1 to opt in testing against the maximum/latest supported version of PHP for the current stable version of Drupal. + OPT_IN_TEST_MAX_PHP: '0' diff --git a/src/EventSubscriber/VwoSmartCodeEventSubscriber.php b/src/EventSubscriber/VwoSmartCodeEventSubscriber.php index 2e9d3be0207d20b17600c2ef594cd571a9a7fe83..426d0394d8851f49a6af319df80116fc0b80d784 100644 --- a/src/EventSubscriber/VwoSmartCodeEventSubscriber.php +++ b/src/EventSubscriber/VwoSmartCodeEventSubscriber.php @@ -125,6 +125,8 @@ class VwoSmartCodeEventSubscriber implements EventSubscriberInterface { * Provides a path matcher. * @param \Drupal\user\UserDataInterface $user_data * User data service. + * + * @phpcs:disable Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma */ public function __construct( ConfigFactoryInterface $config_factory, @@ -135,6 +137,7 @@ class VwoSmartCodeEventSubscriber implements EventSubscriberInterface { PathMatcherInterface $path_matcher = NULL, UserDataInterface $user_data = NULL ) { + // phpcs:enable $this->configFactory = $config_factory; $this->routeMatch = $route_match; $this->currentUser = $current_user; diff --git a/src/Form/Visibility.php b/src/Form/Visibility.php index acf705a426e37eca3bfe5d5a4547c7432727fa44..9167c6b1e737b55fc14d723faec8d716b589c414 100644 --- a/src/Form/Visibility.php +++ b/src/Form/Visibility.php @@ -52,12 +52,15 @@ class Visibility extends FormBase { * The entity type manager. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. + * + * @phpcs:disable Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma */ public function __construct( AccountProxyInterface $current_user, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler ) { + // phpcs:enable $this->currentUser = $current_user; $this->entityTypeManager = $entity_type_manager; $this->moduleHandler = $module_handler;