![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gositeme.com/public_html/whmcs/vendor/punic/punic/.travis/ |
#!/usr/bin/env bash
set -o errexit
set -o nounset
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
CODE_COVERAGE=0
ASSUME_PHP=
while test $# -gt 0; do
case "$1" in
coverage)
CODE_COVERAGE=1
;;
assume-php)
if test $# -lt 2; then
printf 'Missing PHP version after "%s"\n' "$1" >&2
exit 1
fi
ASSUME_PHP=$2
shift 1
;;
*)
printf 'Invalid option: "%s"\n' "$1" >&2
exit 1
;;
esac
shift 1
done
if test $CODE_COVERAGE -eq 0; then
echo '### DISABLING XDEBUG'
phpenv config-rm xdebug.ini || true
else
export COMPOSER_ALLOW_XDEBUG=1
fi
if test -n "$ASSUME_PHP"; then
printf '### INSTUCTING COMPOSER TO ASSUME PHP VERSION %s\n' "$ASSUME_PHP"
composer --no-interaction config platform.php "$ASSUME_PHP"
fi
echo '### REMOVING PHP-CS-FIXER FROM COMPOSER DEPENDENCIES'
composer --no-interaction remove --dev --no-update --no-scripts friendsofphp/php-cs-fixer
if test $CODE_COVERAGE -ne 0; then
echo '### ADDING COVERALLS TO COMPOSER DEPENDENCIES'
composer --no-interaction require --dev --no-suggest --no-update 'php-coveralls/php-coveralls:^2.0'
echo '### ADDING SCRUTINIZER TO COMPOSER DEPENDENCIES'
composer --no-interaction require --dev --no-suggest --no-update 'scrutinizer/ocular:^1.0'
fi
echo '### INSTALLING COMPOSER DEPENDENCIES'
composer --no-interaction install --prefer-dist --optimize-autoloader --no-suggest