2021-12-25 23:26:59 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. bin/translate_container_name.sh
|
|
|
|
|
2021-12-27 00:13:37 +09:00
|
|
|
if [ "$#" -eq 0 ] || [ -z "$*" ]; then
|
2021-12-25 23:26:59 +09:00
|
|
|
docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -n --config=".php-cs-fixer.php" fix
|
2021-12-27 00:13:37 +09:00
|
|
|
else
|
|
|
|
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 -- $*"
|
2021-12-25 23:26:59 +09:00
|
|
|
fi
|