PHP code example of distortedfusion / php-cs-fixer-config
1. Go to this page and download the library: Download distortedfusion/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/ */
distortedfusion / php-cs-fixer-config example snippets
$config = new DistortedFusion\PhpCsFixerConfig\Config();
$config->getFinder()
->in(__DIR__ . "/src")
->in(__DIR__ . "/tests");
return $config;
$config = new DistortedFusion\PhpCsFixerConfig\Config([
'psr0' => false,
'psr4' => false,
]);
$config->getFinder()
->in(__DIR__ . "/src")
->in(__DIR__ . "/tests");
return $config;