@@ -74,7 +74,7 @@ private static function createSyntaxTree(&$tokens)
7474 return $ root ;
7575 }
7676
77- private static function renderChildren ($ node , & $ data , & $ functions )
77+ private static function renderChildren ($ node , $ data , $ functions )
7878 {
7979 $ result = '' ;
8080 foreach ($ node ->children as $ child ) {
@@ -96,7 +96,7 @@ private static function renderChildren($node, &$data, &$functions)
9696 return $ result ;
9797 }
9898
99- private static function renderIfNode ($ node , & $ data , & $ functions )
99+ private static function renderIfNode ($ node , $ data , $ functions )
100100 {
101101 $ parts = explode ('| ' , $ node ->expression );
102102 $ path = array_shift ($ parts );
@@ -113,7 +113,7 @@ private static function renderIfNode($node, &$data, &$functions)
113113 return $ result ;
114114 }
115115
116- private static function renderForNode ($ node , & $ data , & $ functions )
116+ private static function renderForNode ($ node , $ data , $ functions )
117117 {
118118 $ parts = explode ('| ' , $ node ->expression );
119119 $ path = array_shift ($ parts );
@@ -139,7 +139,7 @@ private static function renderForNode($node, &$data, &$functions)
139139 return $ result ;
140140 }
141141
142- private static function renderVarNode ($ node , & $ data , & $ functions )
142+ private static function renderVarNode ($ node , $ data , $ functions )
143143 {
144144 $ parts = explode ('| ' , $ node ->expression );
145145 $ path = array_shift ($ parts );
@@ -152,9 +152,9 @@ private static function renderVarNode($node, &$data, &$functions)
152152 return $ value ;
153153 }
154154
155- private static function resolvePath ($ path , & $ data )
155+ private static function resolvePath ($ path , $ data )
156156 {
157- $ current = & $ data ;
157+ $ current = $ data ;
158158 foreach (explode ('. ' , $ path ) as $ p ) {
159159 if (!isset ($ current [$ p ])) {
160160 throw new \Exception ("path ' $ p' not found " );
@@ -164,7 +164,7 @@ private static function resolvePath($path, &$data)
164164 return $ current ;
165165 }
166166
167- private static function applyFunctions ($ value , & $ parts , & $ functions )
167+ private static function applyFunctions ($ value , $ parts , $ functions )
168168 {
169169 foreach ($ parts as $ part ) {
170170 $ function = explode ('( ' , rtrim ($ part , ') ' ));
0 commit comments