Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/.php_cs.dist

74 lines
2.3 KiB

7 years ago
<?php
$header = '/* For licensing terms, see /license.txt */';
$rules = [
'@Symfony' => true,
//'@Symfony:risky' => true,
7 years ago
'array_syntax' => [
'syntax' => 'short',
],
/*'header_comment' => [
7 years ago
'header' => $header,
],*/
'blank_line_after_opening_tag' => false,
7 years ago
'no_extra_consecutive_blank_lines' => true,
'multiline_comment_opening_closing' => true,
'phpdoc_to_comment' => false,
'phpdoc_annotation_without_dot' => false,
'increment_style' => ['style' => 'post'],
'no_useless_else' => false,
'single_quote' => false,
7 years ago
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
//'phpdoc_order' => true,
'no_break_comment' => true,
'global_namespace_import' => true,
7 years ago
];
$finder = PhpCsFixer\Finder::create()
->exclude('assets')
->exclude('bin')
7 years ago
->exclude('documentation')
->exclude('public/main/inc/lib/internationalization_database')
->exclude('public/main/inc/lib/javascript')
->exclude('public/main/inc/lib/kses-0.2.2')
->exclude('public/main/inc/lib/mimetex')
->exclude('public/main/inc/lib/nusoap')
->exclude('public/main/inc/lib/opengraph')
->exclude('public/main/inc/lib/ppt2png')
->exclude('public/main/inc/lib/pear')
->exclude('public/main/inc/lib/svg-edit')
->exclude('public/main/inc/lib/wami-recorder')
->exclude('public/main/inc/lib/xajax')
->exclude('public/main/lp/packaging')
->exclude('public/main/template')
->exclude('public/main/lang')
->exclude('public/plugin/buycourses/src/Culqi')
->exclude('public/plugin/buycourses/src/Requests')
->exclude('public/plugin/vchamilo/cli')
->exclude('public/plugin/pens/lib')
->exclude('public/plugin/bbb/lib')
->exclude('public/plugin/ims_lti')
->exclude('public/plugin/sepe/src/wsse')
->exclude('public/plugin/test2pdf/class')
->exclude('public/plugin/jcapture/src')
->exclude('public/plugin/jcapture/lib')
7 years ago
->exclude('tests')
->exclude('var')
7 years ago
->exclude('vendor')
->notPath('public/main/admin/db.php')
->notPath('public/check.php')
->notPath('public/main/admin/ldap_synchro.php')
->notPath('public/main/chat/emoji_strategy.php')
7 years ago
->in(__DIR__)
;
return PhpCsFixer\Config::create()
7 years ago
->setRules(
$rules
7 years ago
)
->setFinder($finder);