forked from overtrue/pinyin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tools. * Improve words. * Loader interface. * Remove Pinyin dir. * Remove Old class. * Rename tools. * Refactory. * Segment words. * Tests. * Update README. * Typo * Fix tests. * Update .scrutinizer.yml
- Loading branch information
Showing
31 changed files
with
413,293 additions
and
108,020 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
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,14 +1,29 @@ | ||
<?php | ||
/** | ||
* PHP-CS-fixer configuration. | ||
*/ | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__ . '/src/Pinyin/') | ||
; | ||
$year = date('Y'); | ||
|
||
$header = <<<EOF | ||
This file is part of the overtrue/pinyin. | ||
(c) $year overtrue <i@overtrue.me> | ||
EOF; | ||
|
||
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->fixers(array('-symfony')) | ||
->finder($finder) | ||
->setUsingCache(true) | ||
// use default SYMFONY_LEVEL and extra fixers: | ||
->fixers(array( | ||
'header_comment', | ||
'long_array_syntax', | ||
'ordered_use', | ||
'strict', | ||
'strict_param', | ||
'phpdoc_order', | ||
'php4_constructor', | ||
)) | ||
->finder( | ||
Symfony\CS\Finder\DefaultFinder::create() | ||
->exclude('vendor') | ||
->in(__DIR__.'/src') | ||
) | ||
; |
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
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.