Skip to content

Commit

Permalink
- Added Composer scripts.
Browse files Browse the repository at this point in the history
- Added CS Fixer.
- Updated .gitattributes.
  • Loading branch information
elusivecodes committed Jun 24, 2024
1 parent 535c8a6 commit f6b3040
Show file tree
Hide file tree
Showing 22 changed files with 5,837 additions and 3,352 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
tests/ export-ignore
tests/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php-cs-fixer.dist.php export-ignore
10 changes: 10 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
declare(strict_types=1);

use Fyre\PhpCsFixer\Config;

$config = new Config();

$config->getFinder()->in(__DIR__);

return $config;
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.59",
"fyre/php-cs-fixer-config": "^1.0",
"phpunit/phpunit": "^10"
},
"scripts": {
"cs": "php-cs-fixer fix --ansi --verbose --dry-run --diff",
"cs-fix": "php-cs-fixer fix --ansi --verbose --diff",
"test": "phpunit tests"
}
}
Loading

0 comments on commit f6b3040

Please sign in to comment.