1 Star 0 Fork 25

海阔天空~ / php-msf

forked from Gitee 极速下载 / php-msf 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
.php_cs 1.09 KB
Copy Edit Web IDE Raw Blame History
pinguo-xudianyang authored 2017-02-15 15:01 . * 标准化php-msf库
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in('src')
->in('test')
->notPath('TestAsset')
->notPath('_files')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
}
});
$config = Symfony\CS\Config\Config::create();
$config->level(null);
$config->fixers(
array(
'braces',
'duplicate_semicolon',
'elseif',
'empty_return',
'encoding',
'eof_ending',
'function_call_space',
'function_declaration',
'indentation',
'join_function',
'line_after_namespace',
'linefeed',
'lowercase_keywords',
'parenthesis',
'multiple_use',
'method_argument_space',
'object_operator',
'php_closing_tag',
'remove_lines_between_uses',
'short_array_syntax',
'short_tag',
'standardize_not_equal',
'trailing_spaces',
'unused_use',
'visibility',
'whitespacy_lines',
)
);
$config->finder($finder);
return $config;

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/taoko/php-msf.git
git@gitee.com:taoko/php-msf.git
taoko
php-msf
php-msf
master

Search