Skip to content

Instantly share code, notes, and snippets.

View iyank4's full-sized avatar
🐵
Ngaliwet

Iyan Kushardiansah iyank4

🐵
Ngaliwet
View GitHub Profile
@mardix
mardix / php-cs-fixer-pre-commit.php
Created September 4, 2012 17:06
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)
*