Created
February 28, 2019 12:09
-
-
Save rogercbe/bba4d42caa121a5d9e34326e773cb634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $finder = \PhpCsFixer\Finder::create() | |
| ->in(__DIR__) | |
| ->exclude(['bootstrap', 'storage', 'vendor']) | |
| ->name('*.php') | |
| ->name('_ide_helper') | |
| ->notName('*.blade.php') | |
| ->ignoreDotFiles(true) | |
| ->ignoreVCS(true); | |
| return PhpCsFixer\Config::create() | |
| ->setRules([ | |
| '@PSR2' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'ordered_imports' => ['sortAlgorithm' => 'alpha'], | |
| 'no_unused_imports' => true, | |
| ]) | |
| ->setFinder($finder); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| init: | |
| find .git/hooks -type l -exec rm {} \; | |
| find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| composer format | |
| git add . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment