From add8e6be9115f6cab5ee0d758db1bd23ee2ec2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 30 Jun 2023 12:38:49 +0000 Subject: [PATCH] Fix CS --- .github/workflows/test-and-publish.yml | 6 +++--- composer.json | 10 +++++----- ecs.php | 6 ++++++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 0901c8b..07fe318 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -44,16 +44,16 @@ jobs: - name: script run: | composer validate --strict - vendor/bin/ecs check tests + vendor/bin/ecs check -- ecs.php tests/ - name: after success run: | cp ./ecs.php ./build/ecs${{ matrix.php-version }}.php - name: before deploy - run: | + run: | box compile - ./build/ecs-standalone.phar check tests + ./build/ecs-standalone.phar check -- ecs.php tests/ mv ./build/ecs-standalone.phar ./build/coding-standard-standalone.ecs.php${{ matrix.php-version }}.phar - name: deploy diff --git a/composer.json b/composer.json index 3ecd059..e106710 100755 --- a/composer.json +++ b/composer.json @@ -9,17 +9,17 @@ } ], "require": { - "php": "^7.4||^8.0", - "symplify/easy-coding-standard": "^11.0", + "php": "^7.4 || ^8.0", + "cweagans/composer-patches": "^1.7", "slevomat/coding-standard": "^8.0", - "cweagans/composer-patches": "^1.7" + "symplify/easy-coding-standard": "^11.0" }, "config": { - "preferred-install": "source", "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true, "cweagans/composer-patches": true - } + }, + "preferred-install": "source" }, "extra": { "composer-exit-on-patch-failure": true, diff --git a/ecs.php b/ecs.php index 242967a..4139002 100644 --- a/ecs.php +++ b/ecs.php @@ -2,6 +2,12 @@ declare(strict_types=1); +/* + * Created by netlogix GmbH & Co. KG + * + * @copyright netlogix GmbH & Co. KG + */ + use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer; use Symplify\EasyCodingStandard\Config\ECSConfig;