Skip to content

Commit

Permalink
PhpCsFixer: Execute on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Apr 29, 2024
1 parent 4477a3c commit edbcf39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/config'
])

->exclude([
__DIR__ . '/tests/_output',
__DIR__ . '/tests/Support/_generated',
])

// do not fix views
->notName('*.html.php')
;

// do not enable self_accessor as it breaks pimcore models relying on get_called_class()
Expand All @@ -21,6 +19,7 @@
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],

'header_comment' => [
'comment_type' => 'PHPDoc',
Expand Down Expand Up @@ -54,6 +53,7 @@
'no_leading_namespace_whitespace' => true,
'no_short_bool_cast' => true,
'no_spaces_around_offset' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_whitespace_before_comma_in_array' => true,
Expand Down

0 comments on commit edbcf39

Please sign in to comment.