[TOOLS] Make PHP-CS-Fixer and PHP-Doc-check run inside the tooling container
This commit is contained in:
@@ -1 +0,0 @@
|
||||
../vendor/bin/php-cs-fixer
|
10
bin/php-cs-fixer
Executable file
10
bin/php-cs-fixer
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
. bin/translate_container_name.sh
|
||||
|
||||
if [ "${#}" -eq 1 ]; then
|
||||
docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -q -n --config=".php-cs-fixer.php" fix "${1}"
|
||||
else
|
||||
echo running without specific files?
|
||||
docker exec "$(translate_container_name tooling_php_1)" /var/www/social/vendor/bin/php-cs-fixer -n --config=".php-cs-fixer.php" fix
|
||||
fi
|
Reference in New Issue
Block a user