PHP code example of marioblazek / coding-standard
1. Go to this page and download the library: Download marioblazek/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/ */
marioblazek / coding-standard example snippets
return (new Marek\CodingStandard\PhpCsFixer\Config())
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['vendor'])
->in(__DIR__)
)
;
return (new Marek\CodingStandard\PhpCsFixer\Config())
->addRules([
'list_syntax' => ['syntax' => 'long'],
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['vendor'])
->in(__DIR__)
)
;
// To support running PHP CS Fixer via PHAR file (e.g. in GitHub Actions)
bash
$ vendor/bin/php-cs-fixer fix