Skip to content

Instantly share code, notes, and snippets.

View hsmfawaz's full-sized avatar
🎯
Focusing

Hisham fawaz hsmfawaz

🎯
Focusing
View GitHub Profile
@hsmfawaz
hsmfawaz / .php-cs.dist.php
Created January 20, 2021 00:38 — forked from wilmardo/.php-cs.dist.php
PHP-CS-Fixer matching the Laravel StyleCI rules. The order of rules is the same as here: https://docs.styleci.io/presets#laravel. The linecount of the rules is exactly the same (110 without risky).
<?php
# source: https://docs.styleci.io/presets#laravel
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'align_multiline_comment' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],