Skip to content

Commit

Permalink
cs: Fix the CS (#99)
Browse files Browse the repository at this point in the history
Update the vairous CS fixers and apply them.
  • Loading branch information
theofidry committed Sep 17, 2023
1 parent 86a35de commit 9e0adaf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^3.13.0" installed="3.13.0" location="./tools/php-cs-fixer" copy="false"/>
<phar name="infection" version="^0.26.16" installed="0.26.16" location="./tools/infection" copy="false"/>
<phar name="composer-normalize" version="^2.28.3" installed="2.28.3" location="./tools/composer-normalize" copy="false"/>
<phar name="php-cs-fixer" version="^3.27.0" installed="3.27.0" location="./tools/php-cs-fixer" copy="false"/>
<phar name="infection" version="^0.26.16" installed="0.26.21" location="./tools/infection" copy="false"/>
<phar name="composer-normalize" version="^2.28.3" installed="2.37.0" location="./tools/composer-normalize" copy="false"/>
</phive>
3 changes: 2 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

require_once __DIR__.'/vendor/theofidry/php-cs-fixer-config/src/FidryConfig.php';
require_once __DIR__.'/vendor/fidry/php-cs-fixer-config/src/FidryConfig.php';

use Fidry\PhpCsFixerConfig\FidryConfig;
use PhpCsFixer\Finder;
Expand All @@ -29,6 +29,7 @@
);
$config->addRules([
// For PHP 7.2 compat
'get_class_to_class_keyword' => false,
'heredoc_indentation' => false,
'trailing_comma_in_multiline' => false,
'use_arrow_functions' => false,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
},
"require-dev": {
"fidry/makefile": "^0.2.0",
"fidry/php-cs-fixer-config": "^1.0",
"fidry/php-cs-fixer-config": "^1.1.2",
"phpstan/extension-installer": "^1.2.0",
"phpstan/phpstan": "^1.9.2",
"phpstan/phpstan-deprecation-rules": "^1.0.0",
"phpstan/phpstan-phpunit": "^1.2.2",
"phpstan/phpstan-strict-rules": "^1.4.4",
"phpunit/phpunit": "^9.5.26 || ^8.5.31",
"phpunit/phpunit": "^8.5.31 || ^9.5.26",
"webmozarts/strict-phpunit": "^7.5"
},
"autoload": {
Expand Down
8 changes: 4 additions & 4 deletions tests/CpuCoreCounterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function test_it_can_get_the_number_of_cpu_cores(): void
/**
* @dataProvider cpuCoreFinderProvider
*
* @param list<CpuCoreFinder> $finders
* @param array{CpuCoreFinder, positive-int}|Exception $expected
* @param list<CpuCoreFinder> $finders
* @param array{CpuCoreFinder, positive-int}|Exception $expected
*/
public function test_it_can_get_the_number_of_cpu_cores_based_on_the_registered_finders(
array $finders,
Expand Down Expand Up @@ -70,8 +70,8 @@ public function test_it_can_get_the_number_of_cpu_cores_based_on_the_registered_
/**
* @dataProvider cpuCoreFinderProvider
*
* @param list<CpuCoreFinder> $finders
* @param array{CpuCoreFinder, positive-int}|Exception $expected
* @param list<CpuCoreFinder> $finders
* @param array{CpuCoreFinder, positive-int}|Exception $expected
*/
public function test_it_can_get_the_finder_and_number_of_cpu_cores_based_on_the_registered_finders(
array $finders,
Expand Down

0 comments on commit 9e0adaf

Please sign in to comment.