diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml index 9aa71a1..af5fb13 100644 --- a/.github/workflows/lint-check.yml +++ b/.github/workflows/lint-check.yml @@ -11,4 +11,4 @@ jobs: uses: actions/checkout@v2 - name: Checking PHP Syntax - uses: TheDragonCode/php-codestyler@v1.9.0 + uses: TheDragonCode/php-codestyler@v1.10.0 diff --git a/.github/workflows/lint-fixer.yml b/.github/workflows/lint-fixer.yml index 33a771c..9695cfb 100644 --- a/.github/workflows/lint-fixer.yml +++ b/.github/workflows/lint-fixer.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v2 - name: Checking PHP Syntax - uses: TheDragonCode/php-codestyler@v1.9.0 + uses: TheDragonCode/php-codestyler@v1.10.0 with: fix: true editorconfig: false diff --git a/README.md b/README.md index ce19fd3..66d4fe4 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ jobs: uses: actions/checkout@v2 - name: Checking PHP Syntax - uses: TheDragonCode/php-codestyler@v1.9.0 + uses: TheDragonCode/php-codestyler@v1.10.0 ``` ### Fixer @@ -88,7 +88,7 @@ jobs: uses: actions/checkout@v2 - name: Checking PHP Syntax - uses: TheDragonCode/php-codestyler@v1.9.0 + uses: TheDragonCode/php-codestyler@v1.10.0 with: # Activates the mode of accepting changes with the creation # of commits. @@ -110,13 +110,13 @@ jobs: By default, the linter scans all files in the current launch folder, except for folders such as `vendor`, `node_modules` and `.github`. ```yaml -- uses: TheDragonCode/php-codestyler@v1.9.0 +- uses: TheDragonCode/php-codestyler@v1.10.0 ``` By default, the linter only checks the code-style. If you want to apply the changes, then you need to activate this option: ```yaml -- uses: TheDragonCode/php-codestyler@v1.9.0 +- uses: TheDragonCode/php-codestyler@v1.10.0 with: fix: true ``` diff --git a/bin/codestyler b/bin/codestyler deleted file mode 100644 index 3aaf38a..0000000 --- a/bin/codestyler +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env php - Check::class, - 'fix' => Fix::class, - 'dependabot' => Dependabot::class, - 'editorconfig' => EditorConfig::class, - default => null -}; - -if (empty($processor)) { - $script = empty($script) ? '(empty)' : $script; - - echo 'ERROR: ⚠️Unknown script parameter: ' . $script; - - exit(1); -} - -Application::make()->process($processor); diff --git a/composer.json b/composer.json index 519e453..b4ec371 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,6 @@ } }, "bin": [ - "bin/codestyle", - "bin/codestyler" + "bin/codestyle" ] }