Files
web/.php-cs-fixer.dist.php
DL6ER 69e118ad45 Add PHP-CS-Fixer Workflow
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-08-07 10:51:10 +02:00

30 lines
665 B
PHP

<?php
/* Pi-hole: A black hole for Internet advertisements
* (c) 2022 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license.
*/
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->ignoreDotFiles(false)
->ignoreVCSIgnored(true)
->exclude('scripts/vendor')
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
$config
->setRules(array(
'@PhpCsFixer' => true,
'array_syntax' => array('syntax' => 'long'),
))
->setFinder($finder)
;
return $config;