Compare commits
2 commits
921c1e6401
...
26abaeb739
| Author | SHA1 | Date | |
|---|---|---|---|
| 26abaeb739 | |||
| af0484faf6 |
3 changed files with 30 additions and 0 deletions
28
.php-cs-fixer.dist.php
Normal file
28
.php-cs-fixer.dist.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PhpCsFixer\Config;
|
||||
use PhpCsFixer\Finder;
|
||||
|
||||
return (new Config())
|
||||
->setRiskyAllowed(false)
|
||||
->setRules([
|
||||
'@auto' => true
|
||||
])
|
||||
// 💡 by default, Fixer looks for `*.php` files excluding `./vendor/` - here, you can groom this config
|
||||
->setFinder(
|
||||
(new Finder())
|
||||
// 💡 root folder to check
|
||||
->in(__DIR__)
|
||||
// 💡 additional files, eg bin entry file
|
||||
// ->append([__DIR__.'/bin-entry-file'])
|
||||
// 💡 folders to exclude, if any
|
||||
// ->exclude([/* ... */])
|
||||
// 💡 path patterns to exclude, if any
|
||||
// ->notPath([/* ... */])
|
||||
// 💡 extra configs
|
||||
// ->ignoreDotFiles(false) // true by default in v3, false in v4 or future mode
|
||||
// ->ignoreVCS(true) // true by default
|
||||
)
|
||||
;
|
||||
|
|
@ -18,6 +18,7 @@
|
|||
"serve": "php -S localhost:8080 -t public/"
|
||||
},
|
||||
"require": {
|
||||
"php": "8.5.4",
|
||||
"slim/slim": "4.*",
|
||||
"slim/psr7": "^1.8",
|
||||
"php-di/slim-bridge": "^3.4"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
cypress
|
||||
php85
|
||||
php85Packages.composer
|
||||
php85Packages.php-cs-fixer
|
||||
phpunit
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue