diff --git a/src/tools/phpCsFixer.ts b/src/tools/phpCsFixer.ts index c67e854f..46892b7d 100644 --- a/src/tools/phpCsFixer.ts +++ b/src/tools/phpCsFixer.ts @@ -4,7 +4,7 @@ import {ToolExecutionType} from '../enum/toolExecutionType'; export const PhpCsFixerTool = { executionType : ToolExecutionType.STATIC, name : 'PHP CS Fixer', - command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run', + command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run --format=checkstyle | cs2pr', filesToCheck : [ '.php-cs-fixer.php', '.php-cs-fixer.dist.php' ], toolType : ToolType.CODE_CHECK, }; diff --git a/tests/code-check-phpcsfixer-php-dist/matrix.json b/tests/code-check-phpcsfixer-php-dist/matrix.json index 18498a93..eea70486 100644 --- a/tests/code-check-phpcsfixer-php-dist/matrix.json +++ b/tests/code-check-phpcsfixer-php-dist/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "PHP CS Fixer [7.4, latest]", - "job": "{\"command\":\"./vendor/bin/php-cs-fixer fix -v --diff --dry-run\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/php-cs-fixer fix -v --diff --dry-run --format=checkstyle | cs2pr\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/code-check-phpcsfixer-php/matrix.json b/tests/code-check-phpcsfixer-php/matrix.json index 18498a93..eea70486 100644 --- a/tests/code-check-phpcsfixer-php/matrix.json +++ b/tests/code-check-phpcsfixer-php/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "PHP CS Fixer [7.4, latest]", - "job": "{\"command\":\"./vendor/bin/php-cs-fixer fix -v --diff --dry-run\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"./vendor/bin/php-cs-fixer fix -v --diff --dry-run --format=checkstyle | cs2pr\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" }