From 3a7fad8a62ed009eb1161971edc955d834b4c242 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 29 Aug 2018 12:23:25 +0200 Subject: [PATCH] Fix spelling --- Hooks/delegator.sh | 4 ++-- Hooks/tests.sh | 4 ++-- Hooks/travis.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index a50de2e..776ae40 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -26,12 +26,12 @@ git diff --cached --name-only | while read FILE; do fi # 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 exit 1 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 exit 1 fi diff --git a/Hooks/tests.sh b/Hooks/tests.sh index 376ea88..34b3290 100644 --- a/Hooks/tests.sh +++ b/Hooks/tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -isPhanTestSuccessfull() { +isPhanTestSuccessful() { php -d memory_limit=4G ${rootpath}/vendor/bin/phan -k ${rootpath}/Build/Config/phan.php -f "$1" if [ $? -ne 0 ]; then return 0 @@ -9,7 +9,7 @@ isPhanTestSuccessfull() { 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" if [ $? -ne 0 ]; then return 0 diff --git a/Hooks/travis.sh b/Hooks/travis.sh index 7c4a609..e9fd2d6 100644 --- a/Hooks/travis.sh +++ b/Hooks/travis.sh @@ -28,12 +28,12 @@ git diff --name-only $TRAVIS_COMMIT_RANGE | while read FILE; do fi # 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 exit 1 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 exit 1 fi