Skip to content

Commit b8450c3

Browse files
authored
Merge pull request #134 from overtrue/develop
2.0.0
2 parents 11dbc5d + 87cbe88 commit b8450c3

40 files changed

+546
-2301
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/vendor/
33
composer.lock
44
.php_cs.cache
5-
/coverage/
5+
/coverage/
6+
.phpunit.result.cache

.php_cs

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
$header = <<<EOF
4-
This file is part of the overtrue/laravel-follow.
4+
This file is part of the overtrue/laravel-follow
55
66
(c) overtrue <[email protected]>
77
@@ -10,20 +10,27 @@ with this source code in the file LICENSE.
1010
EOF;
1111

1212
return PhpCsFixer\Config::create()
13-
->setRiskyAllowed(true)
14-
->setRules(array(
15-
'header_comment' => array('header' => $header),
16-
'array_syntax' => array('syntax' => 'short'),
17-
'ordered_class_elements' => true,
18-
'list_syntax' => array('syntax' => 'long'),
19-
'ordered_imports' => true,
20-
'php_unit_strict' => true,
21-
'phpdoc_order' => true,
22-
'strict_comparison' => true,
23-
'strict_param' => true,
24-
))
13+
->setRules([
14+
'@PSR2' => true,
15+
'header_comment' => ['header' => $header],
16+
'blank_line_after_opening_tag' => true,
17+
'braces' => ['allow_single_line_closure' => true],
18+
'compact_nullable_typehint' => true,
19+
'concat_space' => ['spacing' => 'one'],
20+
'declare_equal_normalize' => ['space' => 'none'],
21+
'function_typehint_space' => true,
22+
'new_with_braces' => true,
23+
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
24+
'no_empty_statement' => true,
25+
'no_leading_import_slash' => true,
26+
'no_leading_namespace_whitespace' => true,
27+
'no_whitespace_in_blank_line' => true,
28+
'return_type_declaration' => ['space_before' => 'none'],
29+
'single_trait_insert_per_statement' => true,
30+
])
2531
->setFinder(
2632
PhpCsFixer\Finder::create()
27-
->in(__DIR__.'/src')
33+
->exclude('vendor')
34+
->in([__DIR__.'/src/'])
2835
)
29-
;
36+
;

0 commit comments

Comments
 (0)