rss-bridge/lib
Jan Tojnar 951092eef3
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
2022-07-08 13:00:52 +02:00
..
ActionFactory.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
ActionInterface.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
Authentication.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
BridgeAbstract.php Fix coding style missed by phpbcf (#2901) 2022-07-08 13:00:52 +02:00
BridgeCard.php refactor(BridgeFactory): make methods only accept valid class names (#2897) 2022-07-08 12:54:23 +02:00
BridgeFactory.php refactor(BridgeFactory): make methods only accept valid class names (#2897) 2022-07-08 12:54:23 +02:00
BridgeInterface.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
BridgeList.php refactor(BridgeFactory): make methods only accept valid class names (#2897) 2022-07-08 12:54:23 +02:00
CacheFactory.php refactor: move cache logic into the factory (#2884) 2022-07-05 13:20:01 +02:00
CacheInterface.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
Configuration.php lib/Configuration: Remove redundant comment 2022-07-06 03:34:37 +02:00
contents.php Improve Factory variable names (#2895) 2022-07-06 12:14:04 +02:00
Debug.php Fix coding style missed by phpbcf (#2901) 2022-07-08 13:00:52 +02:00
error.php Improve Factory variable names (#2895) 2022-07-06 12:14:04 +02:00
Exceptions.php Fix coding style missed by phpbcf (#2901) 2022-07-08 13:00:52 +02:00
FeedExpander.php Fix coding style missed by phpbcf (#2901) 2022-07-08 13:00:52 +02:00
FeedItem.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
FormatAbstract.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
FormatFactory.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
FormatInterface.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
html.php Fix coding style missed by phpbcf (#2901) 2022-07-08 13:00:52 +02:00
ParameterValidator.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
php8backports.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
rssbridge.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00
XPathAbstract.php Reformat codebase v4 (#2872) 2022-07-01 15:10:30 +02:00