diff options
author | 2022-07-08 13:00:52 +0200 | |
---|---|---|
committer | 2022-07-08 13:00:52 +0200 | |
commit | 951092eef374db048b77bac85e75e3547bfac702 (patch) | |
tree | b92aef863913960c4d97227c4a63edd98b1eea93 /docs/07_Cache_API/02_CacheInterface.md | |
parent | dbf8c5b7ae48193033f3a3d6d907f6063a21721f (diff) | |
download | rss-bridge-951092eef374db048b77bac85e75e3547bfac702.tar.gz rss-bridge-951092eef374db048b77bac85e75e3547bfac702.tar.zst rss-bridge-951092eef374db048b77bac85e75e3547bfac702.zip |
Fix coding style missed by phpbcf (#2901)
$ composer require --dev friendsofphp/php-cs-fixer
$ echo >.php-cs-fixer.dist.php "<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$rules = [
'@PSR12' => true,
// '@PSR12:risky' => true,
'@PHP74Migration' => true,
// '@PHP74Migration:risky' => true,
// buggy, duplicates existing comment sometimes
'no_break_comment' => false,
'array_syntax' => true,
'lowercase_static_reference' => true,
'visibility_required' => false,
// Too much noise
'binary_operator_spaces' => false,
'heredoc_indentation' => false,
'trailing_comma_in_multiline' => false,
];
$config = new PhpCsFixer\Config();
return $config
->setRules($rules)
// ->setRiskyAllowed(true)
->setFinder($finder);
"
$ vendor/bin/php-cs-fixer --version
PHP CS Fixer 3.8.0 BerSzcz against war! by Fabien Potencier and Dariusz Ruminski.
PHP runtime: 8.1.7
$ vendor/bin/php-cs-fixer fix
$ rm .php-cs-fixer.cache
$ vendor/bin/php-cs-fixer fix
Diffstat (limited to 'docs/07_Cache_API/02_CacheInterface.md')
0 files changed, 0 insertions, 0 deletions