2018-06-05 18:08:54 +00:00
|
|
|
services:
|
2017-11-02 17:21:09 +00:00
|
|
|
# remove unused "use" statements
|
2018-04-01 22:40:05 +00:00
|
|
|
PhpCsFixer\Fixer\Import\NoUnusedImportsFixer: ~
|
2017-11-05 19:36:55 +00:00
|
|
|
|
2017-11-02 17:21:09 +00:00
|
|
|
# order use statements A-Z
|
2018-04-01 22:40:05 +00:00
|
|
|
PhpCsFixer\Fixer\Import\OrderedImportsFixer: ~
|
2017-11-05 19:36:55 +00:00
|
|
|
|
2017-11-09 02:33:17 +00:00
|
|
|
# remove leading slash ("\") at imports
|
2018-04-01 22:40:05 +00:00
|
|
|
PhpCsFixer\Fixer\Import\NoLeadingImportSlashFixer: ~
|
2017-11-09 02:33:17 +00:00
|
|
|
|
2017-11-02 17:21:09 +00:00
|
|
|
# remove extra spaces from DocBlocks
|
2018-04-01 22:40:05 +00:00
|
|
|
PhpCsFixer\Fixer\Comment\NoTrailingWhitespaceInCommentFixer: ~
|
2017-11-05 19:36:55 +00:00
|
|
|
|
2017-11-05 16:35:51 +00:00
|
|
|
# clean empty doc blocks, e.g. after annotation removal
|
2018-04-01 22:40:05 +00:00
|
|
|
PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer: ~
|
2018-02-23 18:16:34 +00:00
|
|
|
|
2018-09-15 18:50:52 +00:00
|
|
|
# import namespaces for classes, constants and functions
|
|
|
|
# configuration: https://github.com/slevomat/coding-standard#slevomatcodingstandardnamespacesreferenceusednamesonly-
|
|
|
|
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
|
2018-10-21 09:44:39 +00:00
|
|
|
searchAnnotations: true
|
2018-09-15 18:50:52 +00:00
|
|
|
allowFallbackGlobalFunctions: true
|
|
|
|
allowFallbackGlobalConstants: true
|
2018-02-27 14:10:13 +00:00
|
|
|
|
|
|
|
# add spaces between class elements
|
2018-10-23 16:57:56 +00:00
|
|
|
PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer: ~
|
2019-05-23 17:32:46 +00:00
|
|
|
|
|
|
|
# add declare strict types to start of the file
|
|
|
|
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer: ~
|