Apply the standard formating
This commit is contained in:
parent
1e980fb8c8
commit
fe537e6037
1 changed files with 12 additions and 10 deletions
|
@ -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') {
|
||||
|
|
Reference in a new issue