PHP code example of hks-systeme / php-cs-fixer-config
1. Go to this page and download the library: Download hks-systeme/php-cs-fixer-config library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hks-systeme / php-cs-fixer-config example snippets
/**
- Copyright (c) 2021 HKS Systeme GmbH
*
- For the full copyright and license information, please view
- the LICENSE file that was distributed with this source code.
*
- @see https://github.com/hks-systeme/php-cs-fixer-config
*/
diff
use HKS\PhpCsFixer\Config;
+$header = <<<EOF
+Copyright (c) 2021 HKS Systeme GmbH
+
+For the full copyright and license information, please view
+the LICENSE file that was distributed with this source code.
+
+@see https://github.com/hks-systeme/php-cs-fixer-config
+EOF;
-$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php74());
+$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php74($header));
$config->getFinder()->in(__DIR__);
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');
return $config;