-
Notifications
You must be signed in to change notification settings - Fork 6
/
.php_cs
26 lines (25 loc) · 1.1 KB
/
.php_cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$header = <<<EOF
This file is part of the trendsoft/laravel-bookmark
(c) trendsoft <[email protected]>
This source file is subject to the MIT license that is bundled with this source code in the file LICENER.
EOF;
return PhpCsFixer\Config::create()->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $header],
'blank_line_after_opening_tag' => true,
'braces' => ['allow_single_line_closure' => true],
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'none'],
'function_typehint_space' => true,
'new_with_braces' => true,
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'no_empty_statement' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_whitespace_in_blank_line' => true,
'return_type_declaration' => ['space_before' => 'none'],
'single_trait_insert_per_statement' => true,
])->setFinder(PhpCsFixer\Finder::create()->exclude('vendor')->in([__DIR__ . '/src/']));