diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 0000000000000000000000000000000000000000..3be8303f6e12f88492ae26569fe6abafa5e6270d --- /dev/null +++ b/.cspell-project-words.txt @@ -0,0 +1,2 @@ +rebecca + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5084b9c27aad273ff0cd4caf688c65adfc6bfcb4..54dcfe86462fcf2a8597098dc5f2131a0fe32cc4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,49 +51,17 @@ include: variables: _SHOW_ENVIRONMENT_VARIABLES: '1' +phpcs: + allow_failure: false -################################################################################### -# -# * -# /( -# ((((, -# /((((((( -# ((((((((((* -# ,((((((((((((((( -# ,((((((((((((((((((( -# ((((((((((((((((((((((((* -# *((((((((((((((((((((((((((((( -# ((((((((((((((((((((((((((((((((((* -# *(((((((((((((((((( .(((((((((((((((((( -# ((((((((((((((((((. /(((((((((((((((((* -# /((((((((((((((((( .(((((((((((((((((, -# ,(((((((((((((((((( (((((((((((((((((( -# .(((((((((((((((((((( .((((((((((((((((( -# ((((((((((((((((((((((( ((((((((((((((((/ -# (((((((((((((((((((((((((((/ ,(((((((((((((((* -# .((((((((((((((/ /(((((((((((((. ,((((((((((((((( -# *(((((((((((((( ,(((((((((((((/ *((((((((((((((. -# ((((((((((((((, /(((((((((((((. ((((((((((((((, -# (((((((((((((/ ,(((((((((((((* ,(((((((((((((, -# *((((((((((((( .((((((((((((((( ,((((((((((((( -# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/ -# ((((((((((((( *(((((((((((((((((((((((* *(((((((((((( -# ((((((((((((( ,(((((((((((((..((((((((((((( *(((((((((((( -# ((((((((((((, /((((((((((((* /((((((((((((/ (((((((((((( -# ((((((((((((( /((((((((((((/ (((((((((((((* (((((((((((( -# (((((((((((((/ /(((((((((((( ,((((((((((((, *(((((((((((( -# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/ -# *((((((((((((((((((((((((((, /((((((((((((((((((((((((( -# ((((((((((((((((((((((((( ((((((((((((((((((((((((, -# .(((((((((((((((((((((((/ ,((((((((((((((((((((((( -# ((((((((((((((((((((((/ ,(((((((((((((((((((((/ -# *((((((((((((((((((((( (((((((((((((((((((((, -# ,(((((((((((((((((((((, ((((((((((((((((((((/ -# ,(((((((((((((((((((((* /(((((((((((((((((((( -# ((((((((((((((((((((((, ,/((((((((((((((((((((, -# ,((((((((((((((((((((((((((((((((((((((((((((((((((( -# .((((((((((((((((((((((((((((((((((((((((((((( -# .((((((((((((((((((((((((((((((((((((,. -# .,(((((((((((((((((((((((((. -# -################################################################################### +phpstan: + allow_failure: false + +phpstan (next major): + allow_failure: true + +phpstan (next minor): + allow_failure: true + +cspell: + allow_failure: false diff --git a/phpcs.xml.dist b/phpcs.xml.dist deleted file mode 100644 index 25ac5574620076fb68b3b80db724218cae61ce6c..0000000000000000000000000000000000000000 --- a/phpcs.xml.dist +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ruleset name="Module"> - <file>.</file> - <arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/> - - <!-- Initially include all Drupal and DrupalPractice sniffs. --> - <rule ref="vendor/drupal/coder/coder_sniffer/Drupal"/> - <rule ref="vendor/drupal/coder/coder_sniffer/DrupalPractice"/> - - <!-- Use 's' to print the full sniff name in the report. --> - <!-- A '-' is prefixed to each of these, so s becomes -s, etc. --> - <arg value="s"/> - <arg value="-colors"/> - <arg name='report-width' value='120'/> - - <!-- Ignore all files that match these patterns. They are matched against --> - <!-- the full file path and there is an implied wildcard at each end. --> - <!-- Periods must be escaped using \. --> - <!-- The first two are key to isolating just this project's files. --> - <exclude-pattern>web/</exclude-pattern> - <exclude-pattern>vendor/</exclude-pattern> - <exclude-pattern>\.patch</exclude-pattern> - <exclude-pattern>interdiff</exclude-pattern> - -</ruleset> diff --git a/src/Plugin/migrate/source/CSV.php b/src/Plugin/migrate/source/CSV.php index 68e53cdc92f33de10aaabb38104e75e9e5a64ef1..7cd2679f8b88418dc788788730f130edda040e19 100644 --- a/src/Plugin/migrate/source/CSV.php +++ b/src/Plugin/migrate/source/CSV.php @@ -238,7 +238,7 @@ class CSV extends SourcePluginBase implements ConfigurableInterface { } $fields = []; foreach ($this->configuration['fields'] as $field) { - $fields[$field['name']] = isset($field['label']) ? $field['label'] : $field['name']; + $fields[$field['name']] = $field['label'] ?? $field['name']; } return $fields; }