@@ -1597,32 +1597,32 @@ protected function processCompactArguments(File $phpcsFile, $stackPtr, $argument
1597
1597
if (!isset ($ tokens [$ argumentPtrs [0 ]])) {
1598
1598
continue ;
1599
1599
}
1600
- $ argument_first_token = $ tokens [$ argumentPtrs [0 ]];
1601
- if ($ argument_first_token ['code ' ] === T_ARRAY ) {
1600
+ $ argumentFirstToken = $ tokens [$ argumentPtrs [0 ]];
1601
+ if ($ argumentFirstToken ['code ' ] === T_ARRAY ) {
1602
1602
// It's an array argument, recurse.
1603
- $ array_arguments = Helpers::findFunctionCallArguments ($ phpcsFile , $ argumentPtrs [0 ]);
1604
- $ this ->processCompactArguments ($ phpcsFile , $ stackPtr , $ array_arguments , $ currScope );
1603
+ $ arrayArguments = Helpers::findFunctionCallArguments ($ phpcsFile , $ argumentPtrs [0 ]);
1604
+ $ this ->processCompactArguments ($ phpcsFile , $ stackPtr , $ arrayArguments , $ currScope );
1605
1605
continue ;
1606
1606
}
1607
1607
if (count ($ argumentPtrs ) > 1 ) {
1608
1608
// Complex argument, we can't handle it, ignore.
1609
1609
continue ;
1610
1610
}
1611
- if ($ argument_first_token ['code ' ] === T_CONSTANT_ENCAPSED_STRING ) {
1611
+ if ($ argumentFirstToken ['code ' ] === T_CONSTANT_ENCAPSED_STRING ) {
1612
1612
// Single-quoted string literal, ie compact('whatever').
1613
1613
// Substr is to strip the enclosing single-quotes.
1614
- $ varName = substr ($ argument_first_token ['content ' ], 1 , -1 );
1614
+ $ varName = substr ($ argumentFirstToken ['content ' ], 1 , -1 );
1615
1615
$ this ->markVariableReadAndWarnIfUndefined ($ phpcsFile , $ varName , $ argumentPtrs [0 ], $ currScope );
1616
1616
continue ;
1617
1617
}
1618
- if ($ argument_first_token ['code ' ] === T_DOUBLE_QUOTED_STRING ) {
1618
+ if ($ argumentFirstToken ['code ' ] === T_DOUBLE_QUOTED_STRING ) {
1619
1619
// Double-quoted string literal.
1620
- if (preg_match (Constants::getDoubleQuotedVarRegexp (), $ argument_first_token ['content ' ])) {
1620
+ if (preg_match (Constants::getDoubleQuotedVarRegexp (), $ argumentFirstToken ['content ' ])) {
1621
1621
// Bail if the string needs variable expansion, that's runtime stuff.
1622
1622
continue ;
1623
1623
}
1624
1624
// Substr is to strip the enclosing double-quotes.
1625
- $ varName = substr ($ argument_first_token ['content ' ], 1 , -1 );
1625
+ $ varName = substr ($ argumentFirstToken ['content ' ], 1 , -1 );
1626
1626
$ this ->markVariableReadAndWarnIfUndefined ($ phpcsFile , $ varName , $ argumentPtrs [0 ], $ currScope );
1627
1627
continue ;
1628
1628
}
0 commit comments