Skip to content

Commit

Permalink
Merge pull request #34 from jawira/update-tests
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
jawira authored Jan 26, 2024
2 parents efe478b + eaffdc2 commit a87befd
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 265 deletions.
8 changes: 4 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php declare(strict_types=1);
$finder = \PhpCsFixer\Finder::create()->in(__DIR__ . DIRECTORY_SEPARATOR . 'src');
$config = new \PhpCsFixer\Config();

return $config->setRules([
$rules = [
'no_unused_imports' => true,
'single_blank_line_at_eof' => true,
'no_trailing_whitespace' => true,
Expand All @@ -16,4 +14,6 @@
'switch_case_space' => true,
'visibility_required' => true,
'simplified_if_return' => true,
])->setFinder($finder)->setHideProgress(true)->setIndent(' ');
];

return (new \PhpCsFixer\Config())->setRules($rules)->setHideProgress(true)->setIndent(' ');
3 changes: 3 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
<exec executable="vendor/bin/php-cs-fixer" passthru="true" checkreturn="true">
<arg value="fix"/>
<arg value="--allow-risky=yes"/>
<arg value="--no-interaction"/>
<arg value="--ansi"/>
<arg value="src"/>
</exec>
</target>

Expand Down
Loading

0 comments on commit a87befd

Please sign in to comment.