- Correct getChoices() docblock to reflect translated label => enum backing value order instead of value => label - Re-indent Smart Links menu config to match actual array nesting - Align assignment operators in RefreshStatsCommand - Add missing newline at end of RefreshStatsCommand.php
29 lines
896 B
YAML
29 lines
896 B
YAML
# Coding standards of the plugin: the same ruleset Mautic core runs
|
|
# (@Symfony + the core tweaks, see .php-cs-fixer.dist.php) and PHPStan level 6
|
|
# (see phpstan.neon). `composer install` in the plugin directory pulls
|
|
# mautic/core-lib (^7.0) so the analysis sees the real Mautic signatures.
|
|
#
|
|
# The PHPUnit suite is not run here: it needs a full Mautic installation
|
|
# (see Tests/bootstrap.php). Run it from the mautic-dev-env container:
|
|
# vendor/bin/phpunit -c docroot/plugins/MT3SMarketingProgramBundle/phpunit.xml.dist
|
|
|
|
stages:
|
|
- lint
|
|
|
|
.default-before-script: &default-before-script
|
|
- composer install --no-interaction --no-progress --prefer-dist
|
|
|
|
php-cs-fixer:
|
|
stage: lint
|
|
image: composer:2
|
|
before_script: *default-before-script
|
|
script:
|
|
- composer cs-check
|
|
|
|
phpstan:
|
|
stage: lint
|
|
image: composer:2
|
|
before_script: *default-before-script
|
|
script:
|
|
- composer phpstan
|