Skip to content

Commit

Permalink
Enable php-cs-fixer on the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed May 3, 2019
1 parent fbe2251 commit 7760109
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,5 @@ nbproject

/tests/E2E/
/vendor/

.php_cs.cache
36 changes: 36 additions & 0 deletions .php_cs.dist
@@ -0,0 +1,36 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('translations')
->notPath('classes/Tools14.php');

return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'concat_space' => [
'spacing' => 'one',
],
'cast_spaces' => [
'space' => 'single',
],
'error_suppression' => [
'mute_deprecation_error' => false,
'noise_remaining_usages' => false,
'noise_remaining_usages_exclude' => [],
],
'function_to_constant' => false,
'no_alias_functions' => false,
'non_printable_character' => false,
'phpdoc_summary' => false,
'phpdoc_align' => [
'align' => 'left',
],
'protected_to_private' => false,
'psr4' => false,
'self_accessor' => false,
'yoda_style' => null,
'non_printable_character' => true,
])
->setFinder($finder);

0 comments on commit 7760109

Please sign in to comment.