Created
July 15, 2014 09:07
-
-
Save tomill/7f07896d6fd91bc87ae8 to your computer and use it in GitHub Desktop.
PPI fun
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
if ($class eq 'Structure::Subscript') { | |
return '[' if $source eq '{'; | |
return ']' if $source eq '}'; | |
return $source; | |
} | |
if ($class eq 'Structure::Constructor') { | |
return 'array(' if $source eq '['; # sad that php is 5.3 | |
return ')' if $source eq ']'; | |
return 'array(' if $source eq '{'; | |
return ')' if $source eq '}'; | |
return $source; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment