# 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