Skip to content

Commit

Permalink
Nutze Docker-Image von friendsofphp/php-cs-fixer
Browse files Browse the repository at this point in the history
Automatische erstellte Änderung über webfactory/bfg9000#9 (Case 174703)
  • Loading branch information
mpdude committed Aug 26, 2024
1 parent 0cb6d17 commit 3c0f284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php

return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'phpdoc_separation' => false,
'array_syntax' => array('syntax' => 'short'),
'no_unreachable_default_argument_value' => false,
'braces' => array('allow_single_line_closure' => true),
Expand Down
4 changes: 2 additions & 2 deletions bin/php-cs-fixer
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

PHP_CS_FIXER_VERSION=${PHP_CS_FIXER_VERSION:-3.11.0}
PHP_CS_FIXER_VERSION=${PHP_CS_FIXER_VERSION:-3.62.0-php8.3}
if [ -t 1 ]; then TTY='--tty'; else TTY=''; fi

exec docker run --rm --init --interactive $TTY -w=/${PWD} -v $(pwd):/${PWD} oskarstark/php-cs-fixer-ga:$PHP_CS_FIXER_VERSION "$@"
exec docker run --rm --init --interactive $TTY -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:$PHP_CS_FIXER_VERSION fix "$@"

0 comments on commit 3c0f284

Please sign in to comment.