Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui_patterns_settings
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
15
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
ui_patterns_settings
Merge requests
!16
Resolve
#3345071
"Pierre proposal"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3345071
"Pierre proposal"
issue/ui_patterns_settings-3345071:3345071-pierre-proposal
into
8.x-2.x
Overview
0
Commits
6
Pipelines
0
Changes
20
Merged
Pierre Dureau
requested to merge
issue/ui_patterns_settings-3345071:3345071-pierre-proposal
into
8.x-2.x
1 year ago
Overview
0
Commits
6
Pipelines
0
Changes
20
Expand
Closes
#3345071
👍
0
👎
0
Merge request reports
Compare
8.x-2.x
version 2
e159447f
1 year ago
version 1
a9ebb91e
1 year ago
8.x-2.x (base)
and
latest version
latest version
30c516c9
6 commits,
1 year ago
version 2
e159447f
6 commits,
1 year ago
version 1
a9ebb91e
9 commits,
1 year ago
20 files
+
1027
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
20
Search (e.g. *.vue) (Ctrl+P)
.docksal/addons/phpcs/phpcs
0 → 100755
+
66
−
0
Options
#!/usr/bin/env bash
## Run PHP Code Sniffer Commands
##
## This command will allow for running Code Sniffer commands
## to help make sure is to coding standards.
##
## Running PHPCS
## fin phpcs cs "[directory name]"
##
## Running PHPCBF
## fin phpcs cbf "[directory name]"
##
## Usage:
## cs Run PHPCS
## cbf Run PHPCBF
STANDARDS
=
""
if
[[
-n
"
${
PHPCS_STANDARDS
}
"
]]
;
then
STANDARDS
=
"
${
PHPCS_STANDARDS
}
"
fi
if
[[
-n
"
${
PHPCS_EXTENSIONS
}
"
]]
;
then
EXTENSIONS
=
"
${
PHPCS_EXTENSIONS
}
"
fi
if
[[
-f
"
${
PROJECT_ROOT
}
/
${
DOCROOT
}
/sites/default/settings.php"
]]
||
[[
-f
"
${
PROJECT_ROOT
}
/
${
DOCROOT
}
/sites/default/default.settings.php"
]]
;
then
STANDARDS
=
"
${
STANDARDS
:-
"Drupal,DrupalPractice"
}
"
EXTENSIONS
=
"
${
EXTENSIONS
:-
"php,module,inc,install,test,profile,theme,css,info,txt,md"
}
"
;
elif
[[
-f
"
${
PROJECT_ROOT
}
/
${
DOCROOT
}
/wp-config.php"
]]
;
then
STANDARDS
=
"
${
STANDARDS
:-
"WordPress"
}
"
EXTENSIONS
=
"
${
EXTENSIONS
:-
"php"
}
"
fi
COMMAND
=
""
case
"
$1
"
in
cs
)
shift
COMMAND
=
"/var/vendor/phpcs"
;;
cbf
)
shift
COMMAND
=
"phpcbf"
;;
*
)
fin
help
phpcs
exit
;;
esac
# If standard flag is used remove our default.
STANDARD_OPT
=
"--standard=
\"
${
STANDARDS
}
\"
"
if
[[
"
$@
"
=
~
"--standard="
]]
;
then
STANDARD_OPT
=
""
fi
# If extension flag is used remove our default.
EXTENSION_OPT
=
"--extensions=
\"
${
EXTENSIONS
}
\"
"
if
[[
"
$@
"
=
~
"--extensions="
]]
;
then
EXTENSION_OPT
=
""
fi
print
"
$COMMAND
$STANDARD_OPT
$EXTENSION_OPT
$@
"
# run the command in the container.
fin
exec
"
$COMMAND
$STANDARD_OPT
$EXTENSION_OPT
$@
"
Loading