Skip to content

Commit

Permalink
Merge pull request #3 from rosven9856/0.1.3
Browse files Browse the repository at this point in the history
0.1.3
  • Loading branch information
rosven9856 authored Aug 21, 2024
2 parents 8a53c51 + e1b7334 commit 107827e
Show file tree
Hide file tree
Showing 6 changed files with 489 additions and 415 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ jobs:
tools: composer:v2
coverage: none
- run: composer validate --strict --ansi
# composer-require-checker:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php:
# - 8.3
# steps:
# - uses: actions/checkout@v4
# - uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# tools: composer:v2
# coverage: none
# - uses: ramsey/composer-install@v2
# with:
# composer-options: --optimize-autoloader
# - run: composer require-checker
composer-require-checker:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 8.3
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- uses: ramsey/composer-install@v2
with:
composer-options: --optimize-autoloader
- run: composer require-checker
composer-unused:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -91,23 +91,23 @@ jobs:
with:
composer-options: --optimize-autoloader
- run: composer normalize --dry-run --diff --ansi
# php-cs-fixer:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# php:
# - 8.3
# steps:
# - uses: actions/checkout@v4
# - uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# tools: composer:v2, cs2pr
# coverage: none
# - uses: ramsey/composer-install@v2
# with:
# composer-options: --optimize-autoloader
# - run: composer fixcs -- --dry-run --diff --format=checkstyle --ansi | cs2pr
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- 8.3
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2, cs2pr
coverage: none
- uses: ramsey/composer-install@v2
with:
composer-options: --optimize-autoloader
- run: composer fixcs -- --dry-run --diff --format=checkstyle --ansi | cs2pr
rector:
runs-on: ubuntu-latest
strategy:
Expand Down
6 changes: 4 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PHPyh\CodingStandard\PhpCsFixerCodingStandard;

$finder = PhpCsFixer\Finder::create()
$finder = Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
Expand All @@ -16,7 +18,7 @@
'benchmark.php',
]);

$config = (new PhpCsFixer\Config())
$config = (new Config())
->setFinder($finder)
->setCacheFile(__DIR__ . '/var/.php-cs-fixer.cache');

Expand Down
Loading

0 comments on commit 107827e

Please sign in to comment.