-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/swoft-cloud/swoft-framework
- Loading branch information
Showing
40 changed files
with
606 additions
and
256 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ temp/ | |
.phpintel/ | ||
.DS_Store | ||
/.php_cs.cache | ||
test/runtime |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,34 @@ | ||
<?php | ||
$header = <<<EOF | ||
This file is part of PHP CS Fixer. | ||
(c) Fabien Potencier <[email protected]> | ||
Dariusz Rumiński <[email protected]> | ||
This source file is subject to the MIT license that is bundled | ||
with this source code in the file LICENSE. | ||
|
||
$header = <<<'EOF' | ||
This file is part of Swoft. | ||
@link https://swoft.org | ||
@document https://doc.swoft.org | ||
@contact [email protected] | ||
@license https://github.com/swoft-cloud/swoft/blob/master/LICENSE | ||
EOF; | ||
|
||
return PhpCsFixer\Config::create() | ||
// ->setRiskyAllowed(true) | ||
// ->setRules(array( | ||
// '@Symfony' => true, | ||
// '@Symfony:risky' => true, | ||
// 'array_syntax' => array('syntax' => 'long'), | ||
// 'combine_consecutive_unsets' => true, | ||
// // one should use PHPUnit methods to set up expected exception instead of annotations | ||
// 'general_phpdoc_annotation_remove' => array('expectedException', 'expectedExceptionMessage', 'expectedExceptionMessageRegExp'), | ||
// 'header_comment' => array('header' => $header), | ||
// 'heredoc_to_nowdoc' => true, | ||
// 'no_extra_consecutive_blank_lines' => array('break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block'), | ||
// 'no_unreachable_default_argument_value' => true, | ||
// 'no_useless_else' => true, | ||
// 'no_useless_return' => true, | ||
// 'ordered_class_elements' => true, | ||
// 'ordered_imports' => true, | ||
// 'php_unit_strict' => true, | ||
// 'phpdoc_add_missing_param_annotation' => true, | ||
// 'phpdoc_order' => true, | ||
// 'psr4' => true, | ||
// 'strict_comparison' => true, | ||
// 'strict_param' => true, | ||
// )) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'header_comment' => [ | ||
'commentType' => 'PHPDoc', | ||
'header' => $header, | ||
'separate' => 'none' | ||
], | ||
'array_syntax' => [ | ||
'syntax' => 'short' | ||
], | ||
'single_quote' => true, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in('src') | ||
->in('test') | ||
->exclude('public') | ||
->exclude('resources') | ||
->exclude('config') | ||
->exclude('runtime') | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
) | ||
; | ||
?> | ||
->setUsingCache(false); |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.