Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 41 lines (39 sloc) 619 Bytes
#!/usr/bin/env php
<?php
echo
// remove unnecessary blanks
preg_replace
(
'![ ]+\{!',
'{',
preg_replace
(
'!([:\(\{,;])[ ]+!',
'\1',
preg_replace
(
'![ ]+([\)\}])!',
'\1',
// condense blanks
preg_replace
(
'![\t ]+!',
' ',
// remove newlines and white space at the beginning
// and at the end of lines
preg_replace
(
'![\t ]*[\r\n]+[\t ]*!m',
'',
// remove comments
preg_replace
(
'!/\*[^*]*\*+([^/][^*]*\*+)*/!',
'',
file_get_contents( "php://stdin" )
)
)
)
)
)
) . "\n";
Something went wrong with that request. Please try again.