Skip to content

Commit

Permalink
Update CS config, fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerai committed Oct 15, 2022
1 parent 2f71a24 commit 287e0d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
declare(strict_types=1);

use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use PhpCsFixer\Fixer\Import\FullyQualifiedStrictTypesFixer;
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
use PhpCsFixer\Fixer\NamespaceNotation\BlankLineAfterNamespaceFixer;
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
use PhpCsFixer\Fixer\PhpTag\LinebreakAfterOpeningTagFixer;
Expand All @@ -29,9 +32,9 @@
BlankLineAfterNamespaceFixer::class,
NoUnusedImportsFixer::class,
LinebreakAfterOpeningTagFixer::class,
//OrderedImportsFixer::class,
//NativeFunctionInvocationFixer::class,
//FullyQualifiedStrictTypesFixer::class,
OrderedImportsFixer::class,
NativeFunctionInvocationFixer::class,
FullyQualifiedStrictTypesFixer::class,
StrictComparisonFixer::class,

]);
Expand Down
2 changes: 1 addition & 1 deletion src/AccessGudidHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private function endpoint(string $queryString = ''): string

private function apiResource(string $resourceType, string $queryString = '', string $resourceFormat = AccessGudidApi::ALLOWED_FORMAT['json']): string
{
if (! in_array($resourceFormat, AccessGudidApi::ALLOWED_FORMAT)) {
if (! \in_array($resourceFormat, AccessGudidApi::ALLOWED_FORMAT)) {
throw new \InvalidArgumentException('Invalid api format.');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php declare(strict_types=1);
require dirname(__DIR__) . '/vendor/autoload.php';
require \dirname(__DIR__) . '/vendor/autoload.php';

0 comments on commit 287e0d6

Please sign in to comment.