Set up PHP CS code formatter #36
mikegioia
commented 2018-07-23 20:46:42 +02:00
(Migrated from github.com)
```
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->exclude([
'Command',
'Events',
'Exceptions',
'Log',
'Message',
'Model',
'Server',
'Sync',
'Task',
'Traits',
'Groups',
])
->depth(1);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'braces' => false,
'new_with_braces' => false,
'trailing_comma_in_multiline_array' => false,
'not_operator_with_successor_space' => true,
'phpdoc_align' => false,
'function_declaration' => [
'closure_function_spacing' => 'one'
],
'blank_line_before_statement' => [
'statements' => [
'return', 'try', 'throw'
]
]
])
->setFinder($finder)
->setUsingCache(false);
```
Labels
No labels
actions
bug
complicated
database
dependencies
documentation
downstream
duplicate
enhancement
feature
fixed already
front-end
idea
internal
invalid
investigating
javascript
low priority
milestone
minor bug
needs info
networking
nice to have
pcntl
php
question
suggestion
sync
threading
ui
ux
web
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bcarrella/libremail#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?