bridge, 'getDiffStream')) { // kludge - we should use interface.... return true; } $fp = $checker->bridge->getDiffStream(); $diff = stream_get_contents($fp); $lines = explode("\n",$contents); $seq = 0; $total = 0; // probably a CRLF fix.... if (count($lines) > 100) { return; } foreach($lines as $l) { $ll = trim($l); if ($l != '+') { $seq =0; continue; } // got blannk line $seq++; if ($seq > 2) { return "You are adding more than 2 blank lines - please remove the new blank lines you added and try again."; } } return true; } function postCommit($msg, $files, $actions) { return true; } }