php-cs-fixer 409 B

12345678910
  1. #!/bin/sh
  2. . bin/translate_container_name.sh
  3. if [ "$#" -eq 0 ] || [ -z "$*" ]; then
  4. docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -n --config=".php-cs-fixer.php" fix
  5. else
  6. docker exec "$(translate_container_name tooling_php_1)" sh -c "/var/www/social/vendor/bin/php-cs-fixer -q -n --config=\".php-cs-fixer.php\" fix --path-mode=intersection -- $*"
  7. fi