Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always check ecs.php

mv ./build/ecs-standalone.phar ./build/coding-standard-standalone.ecs.php${{ matrix.php-version }}.phar

- name: deploy
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normalize composer.json.
There is a Composer (JSON) schema.

},
"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,
Expand Down
6 changes: 6 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down