Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
migrate_source_csv
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
migrate_source_csv
Commits
9d21efc4
Commit
9d21efc4
authored
3 months ago
by
Lucas Hedding
Browse files
Options
Downloads
Plain Diff
Merge branch '3497910-phpcs' into '8.x-3.x'
Resolve
#3497910
"Phpcs" See merge request
!16
parents
5823dd26
0807f9cc
No related branches found
No related tags found
No related merge requests found
Pipeline
#388710
passed
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.cspell-project-words.txt
+2
-0
2 additions, 0 deletions
.cspell-project-words.txt
.gitlab-ci.yml
+13
-45
13 additions, 45 deletions
.gitlab-ci.yml
phpcs.xml.dist
+0
-25
0 additions, 25 deletions
phpcs.xml.dist
src/Plugin/migrate/source/CSV.php
+1
-1
1 addition, 1 deletion
src/Plugin/migrate/source/CSV.php
with
16 additions
and
71 deletions
.cspell-project-words.txt
0 → 100644
+
2
−
0
View file @
9d21efc4
rebecca
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
13
−
45
View file @
9d21efc4
...
...
@@ -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
This diff is collapsed.
Click to expand it.
phpcs.xml.dist
deleted
100644 → 0
+
0
−
25
View file @
5823dd26
<?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>
This diff is collapsed.
Click to expand it.
src/Plugin/migrate/source/CSV.php
+
1
−
1
View file @
9d21efc4
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment