You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
description: Check PHP Syntax on ALL PHP staged files with user friendly messages and colors
entry: pre_commit_hooks/php-lint.sh
language: script
files: \.php$
args: [-s all]
- id: php-lint
name: PHP Syntax Check (Quick)
description: Runs php -l on all staged files. Exits when it hits the first errored file
entry: php -l
language: system
files: \.php$
- id: php-unit
name: PHP Unit
description: Run the full php unit test. Checks which PHPUnit executable is available first and then runs it. Preference order is vendor/bin, phpunit and phpunit.phar.
entry: pre_commit_hooks/php-unit.sh
language: script
files: \.php$
- id: php-cs
name: PHP Codesniffer
description: Run php codesniffer against all staged files.
entry: pre_commit_hooks/php-cs.sh
language: script
files: \.php$
- id: php-cbf
name: PHP Codesniffer (Code Beutifier and Formatter)
description: Run php codesniffer against all staged files.
entry: pre_commit_hooks/php-cbf.sh
language: script
files: \.php$
- id: php-cs-fixer
name: PHP Coding Standards Fixer
description: Run php coding standards fixer against all staged files.
entry: pre_commit_hooks/php-cs-fixer.sh
language: script
files: \.php$
# Adapted from AmphiBee/laravel-pint-pre-commit
- id: php-pint
name: Laravel Pint
description: Run Laravel Pint fixer against all staged files.
entry: pre_commit_hooks/php-pint.sh
language: script
pass_filenames: false # let script handle file selection