mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-16 13:26:31 +00:00
Remove PHP CS Fixer workaround (#963)
* Remove PHP CS Fixer workaround * Clean up
This commit is contained in:
@@ -118,21 +118,12 @@ if [[ "${?}" -ne 0 ]]; then
|
||||
errors+=("found PHP_CodeSniffer coding standard violation(s)")
|
||||
fi
|
||||
|
||||
# TODO: Remove this workaround that only runs php-cs-fixer on PHP < 8.4 when
|
||||
# php-cs-fixer supports PHP 8.4.
|
||||
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/8300
|
||||
if [[ $(echo "${CI_PHP_VERSION} < 8.4" | bc -l) -eq 1 ]]; then
|
||||
|
||||
# Run PHP-CS-Fixer.
|
||||
vendor/bin/php-cs-fixer --version
|
||||
vendor/bin/php-cs-fixer fix --ansi --config="tests/.php-cs-fixer.php" --diff --dry-run
|
||||
if [[ "${?}" -ne 0 ]]; then
|
||||
echo "❌ Error: found PHP-CS-Fixer coding standard violation(s)"
|
||||
errors+=("found PHP-CS-Fixer coding standard violation(s)")
|
||||
fi
|
||||
else
|
||||
echo "⚠️ Skipped running PHP-CS-Fixer coding standards check"
|
||||
warnings+=("Skipped running PHP-CS-Fixer coding standards check")
|
||||
# Run PHP-CS-Fixer.
|
||||
vendor/bin/php-cs-fixer --version
|
||||
vendor/bin/php-cs-fixer fix --ansi --config="tests/.php-cs-fixer.php" --diff --dry-run
|
||||
if [[ "${?}" -ne 0 ]]; then
|
||||
echo "❌ Error: found PHP-CS-Fixer coding standard violation(s)"
|
||||
errors+=("found PHP-CS-Fixer coding standard violation(s)")
|
||||
fi
|
||||
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user