Apply the standard formating

This commit is contained in:
Tim Schumacher 2013-11-08 20:37:58 +01:00
parent 1e980fb8c8
commit fe537e6037

View file

@ -3,7 +3,8 @@ require 'vendor/autoload.php';
$translations = array();
function format_xml(&$simpleXmlObject){
function format_xml(&$simpleXmlObject)
{
if (!is_object($simpleXmlObject)) {
return "";
@ -19,7 +20,8 @@ function format_xml(&$simpleXmlObject){
class MyNodeVisitor extends PHPParser_NodeVisitorAbstract
{
public function enterNode(PHPParser_Node $node) {
public function enterNode(PHPParser_Node $node)
{
global $translations;
if ($node instanceof PHPParser_Node_Expr_MethodCall) {
if ($node->name == 'trans') {