Fix spelling

This commit is contained in:
Dennis Eichhorn 2018-08-29 12:23:25 +02:00
parent 2b80aa60fc
commit 3a7fad8a62
3 changed files with 6 additions and 6 deletions

View File

@ -26,12 +26,12 @@ git diff --cached --name-only | while read FILE; do
fi fi
# Tests # Tests
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessfull "$FILE") = 0 ]]; then if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
echo -e "\e[1;31m\tPhan error.\e[0m" >&2 echo -e "\e[1;31m\tPhan error.\e[0m" >&2
exit 1 exit 1
fi fi
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessfull "$FILE") = 0 ]]; then if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2 echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
exit 1 exit 1
fi fi

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
isPhanTestSuccessfull() { isPhanTestSuccessful() {
php -d memory_limit=4G ${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f "$1" php -d memory_limit=4G ${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f "$1"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return 0 return 0
@ -9,7 +9,7 @@ isPhanTestSuccessfull() {
return 1 return 1
} }
isPhpStanTestSuccessfull() { isPhpStanTestSuccessful() {
php -d memory_limit=4G ${rootpath}/vendor/bin/phpstan analyse --autoload-file=${rootpath}/phpOMS/Autoloader.php -l 7 -c ${rootpath}/Build/Config/phpstan.neon "$1" php -d memory_limit=4G ${rootpath}/vendor/bin/phpstan analyse --autoload-file=${rootpath}/phpOMS/Autoloader.php -l 7 -c ${rootpath}/Build/Config/phpstan.neon "$1"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
return 0 return 0

View File

@ -28,12 +28,12 @@ git diff --name-only $TRAVIS_COMMIT_RANGE | while read FILE; do
fi fi
# Tests # Tests
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessfull "$FILE") = 0 ]]; then if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhanTestSuccessful "$FILE") = 0 ]]; then
echo -e "\e[1;31m\tPhan error.\e[0m" >&2 echo -e "\e[1;31m\tPhan error.\e[0m" >&2
exit 1 exit 1
fi fi
if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessfull "$FILE") = 0 ]]; then if [[ "$FILE" =~ ^.+(php)$ ]] && [[ $(isPhpStanTestSuccessful "$FILE") = 0 ]]; then
echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2 echo -e "\e[1;31m\tPhp stan error.\e[0m" >&2
exit 1 exit 1
fi fi