PHP code example of brandembassy / coding-standard
1. Go to this page and download the library: Download brandembassy/coding-standard 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/ */
brandembassy / coding-standard example snippets
$rectorConfigBuilder = RectorConfig::configure();
$defaultRectorConfigurationSetup = can skip unwanted rules here
$skipList = array_merge(
$defaultSkipList,
[
'*/__fixtures__/*',
NewlineAfterStatementRector::class, // might conflict with ECS
],
);
// You can override/append to the default configuration here
$rectorConfigBuilder
->withPHPStanConfigs([__DIR__ . '/phpstan.neon'])
->withCache('./var/temp/rector', FileCacheStorage::class)
->withSkip($skipList);
return $rectorConfigBuilder;