Skip to content

Instantly share code, notes, and snippets.

View bakytn's full-sized avatar

Bakyt Niyazov bakytn

  • Bishkek, Kyrgyz Republic
View GitHub Profile
@bakytn
bakytn / pre-receive
Last active February 5, 2016 06:43 — forked from proofek/pre-receive
pre-receive git hook to run php linter
#!/usr/bin/php
<?php
error_reporting(0);
echo "\nRunning php linter...\n";
$params = explode(' ', file_get_contents('php://stdin'));
$ref = trim($params[1]);
$diff = array();