| name | description | license |
|---|---|---|
laravel-comments |
Format Laravel config file comments using the cascading style. Use when writing or fixing comments in config/*.php files. |
MIT |
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 | |
| return PhpCsFixer\Config::create() | |
| ->setRules(array( | |
| '@PSR2' => true, | |
| 'array_indentation' => true, | |
| 'array_syntax' => array('syntax' => 'short'), | |
| 'combine_consecutive_unsets' => true, | |
| 'method_separation' => true, | |
| 'no_multiline_whitespace_before_semicolons' => true, |
any: magic, ill-behaved type that acts like a combination ofnever(the proper [bottom type]) andunknown(the proper [top type])- Anything except
neveris assignable toany, andanyis assignable to anything at all. - Identities:
any & AnyTypeExpression = any,any | AnyTypeExpression = any - Key TypeScript feature that allows for [gradual typing].
- Anything except
unknown: proper, well-behaved [top type]- Anything at all is assignable to
unknown.unknownis only assignable to itself (unknown) andany. - Identities:
unknown & AnyTypeExpression = AnyTypeExpression,unknown | AnyTypeExpression = unknown
- Anything at all is assignable to
- Prefer over
anywhenever possible. Anywhere in well-typed code you're tempted to useany, you probably wantunknown.
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
