diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index b173f53..132b533 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -72,6 +72,12 @@ jobs: cd galette-core/galette/plugins/plugin-fullcard ../../vendor/bin/phpcs lib/ ./*.php + - name: CS Fixer + if: matrix.php-versions == '8.1' + run: | + cd galette-core/galette/plugins/plugin-fullcard + ../../vendor/bin/php-cs-fixer check --show-progress=dots --verbose --diff + - name: Check missing symbols run: | cd galette-core/galette/plugins/plugin-fullcard diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..257661b --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,22 @@ +in([ + __DIR__ . '/lib', + ]) +; + +return (new PhpCsFixer\Config()) + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) + ->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer.plugin-galette-fullcard.cache') + ->setRules([ + '@PSR12' => true, + '@PER-CS' => true, + '@PHP82Migration' => true, + 'trailing_comma_in_multiline' => false, + 'cast_spaces' => false, + 'single_line_empty_body' => false, + 'no_unused_imports' => true + ]) + ->setFinder($finder) +; diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 31e1e5c..08e4730 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -7,14 +7,13 @@ build: override: - composer self-update - git clone --depth=1 https://github.com/galette/galette -b develop galette && pushd galette - - ./bin/install_deps && popd nodes: analysis: environment: php: - version: 8.1 + version: 8.2 project_setup: override: diff --git a/_define.php b/_define.php index f4307fe..31b1e79 100644 --- a/_define.php +++ b/_define.php @@ -26,7 +26,7 @@ 'Full member card as PDF', //Short description 'Johan Cwiklinski', //Author '2.1.0', //Version - '1.1.0', //Galette compatible version + '1.2.0', //Galette compatible version 'fullcard', //routing name '2024-06-08', //Release date [] //Permissions needed