Skip to content

Instantly share code, notes, and snippets.

View Jamlee's full-sized avatar
🐛
Focusing

JamLee Jamlee

🐛
Focusing
View GitHub Profile
@Jamlee
Jamlee / php-cs-fixer-pre-commit.php
Last active November 3, 2020 12:20 — forked from mardix/php-cs-fixer-pre-commit.php
Git: A pre-commit hook to make PHP code PSR-2 compliant, check for syntax error
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*