Created
April 24, 2013 08:57
-
-
Save mircobabini/5450744 to your computer and use it in GitHub Desktop.
Dedicato a chi non mette lo spazio prima delle parentesi. Con immenso odio,
M.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$input = "input.java"; | |
$c = file_get_contents ($input); // get the mess | |
$c = str_replace ('(', " (", $c); // fill the space | |
$c = preg_replace ('#\s\s+\(#', " (", $c); // remove multiple spaces | |
file_put_contents ("output.java", $c); // spread the world | |
// one day you will regret it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment