[TOOLS] Make PHP-CS-Fixer and PHP-Doc-check run inside the tooling container
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
translate_container_name () {
|
||||
if docker container inspect "$1" > /dev/null 2>&1; then
|
||||
echo "$1"
|
||||
else
|
||||
echo "$1" | sed 'y/_/-/'
|
||||
fi
|
||||
}
|
||||
. bin/translate_container_name.sh
|
||||
|
||||
docker exec "$(translate_container_name tooling_php_1)" /var/tooling/phpstan.sh "$@"
|
||||
|
Reference in New Issue
Block a user