Skip to content

Commit

Permalink
php-cs-fixer fixes
Browse files Browse the repository at this point in the history
sturkel89 committed Oct 21, 2024
1 parent 423cba3 commit 0381b69
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/VuFindHttp/HttpService.php
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@

use function get_class;
use function in_array;
use function sprintf;
use function strlen;

/**
2 changes: 2 additions & 0 deletions tests/unit-tests/src/VuFindTest/HttpServiceTest.php
Original file line number Diff line number Diff line change
@@ -31,6 +31,8 @@

use VuFindHttp\HttpService as Service;

use function sprintf;

/**
* Proxy service unit test.
*
9 changes: 5 additions & 4 deletions tests/vufind.php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@
->in(__DIR__ . '/../src');

$rules = [
'@PHP80Migration' => true,
'@PHPUnit84Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,
'@PSR12' => true,
'align_multiline_comment' => true,
'binary_operator_spaces' => [
@@ -44,8 +44,8 @@
'no_php4_constructor' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_unneeded_braces' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
@@ -75,4 +75,5 @@
return $config->setCacheFile($cacheDir . '/.code.cache')
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);
->setFinder($finder)
->setParallelConfig(\PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());

0 comments on commit 0381b69

Please sign in to comment.