File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ public function tokenize() {
291
291
break ;
292
292
293
293
case 'PHP_Token_FUNCTION ' :
294
- $ name = $ this ->tname ($ tokens , $ idx );
294
+ $ tname = $ this ->tname ($ tokens , $ idx );
295
295
$ tmp = array (
296
296
'docblock ' => $ token ->getDocblock (),
297
297
'keywords ' => $ this ->getKeywords ($ tokens , $ i ),
@@ -304,13 +304,13 @@ public function tokenize() {
304
304
);
305
305
306
306
if ($ class === false && $ trait === false && $ interface === false ) {
307
- $ this ->functions [$ name ] = $ tmp ;
307
+ $ this ->functions [$ tname ] = $ tmp ;
308
308
} elseif ($ class !== false ) {
309
- $ this ->classes [$ class ]['methods ' ][$ name ] = $ tmp ;
309
+ $ this ->classes [$ class ]['methods ' ][$ tname ] = $ tmp ;
310
310
} elseif ($ trait !== false ) {
311
- $ this ->traits [$ trait ]['methods ' ][$ name ] = $ tmp ;
311
+ $ this ->traits [$ trait ]['methods ' ][$ tname ] = $ tmp ;
312
312
} else {
313
- $ this ->interfaces [$ interface ]['methods ' ][$ name ] = $ tmp ;
313
+ $ this ->interfaces [$ interface ]['methods ' ][$ tname ] = $ tmp ;
314
314
}
315
315
break ;
316
316
You can’t perform that action at this time.
0 commit comments