Mercurial > hg > isophonics-drupal-site
comparison vendor/phpunit/php-token-stream/src/Token/Stream.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
174 | 174 |
175 if ($lastNonWhitespaceTokenWasDoubleColon && $name == 'CLASS') { | 175 if ($lastNonWhitespaceTokenWasDoubleColon && $name == 'CLASS') { |
176 $name = 'CLASS_NAME_CONSTANT'; | 176 $name = 'CLASS_NAME_CONSTANT'; |
177 } elseif ($name == 'USE' && isset($tokens[$i+2][0]) && $tokens[$i+2][0] == T_FUNCTION) { | 177 } elseif ($name == 'USE' && isset($tokens[$i+2][0]) && $tokens[$i+2][0] == T_FUNCTION) { |
178 $name = 'USE_FUNCTION'; | 178 $name = 'USE_FUNCTION'; |
179 $text .= $tokens[$i+1][1] . $tokens[$i+2][1]; | |
179 $skip = 2; | 180 $skip = 2; |
180 } | 181 } |
181 | 182 |
182 $tokenClass = 'PHP_Token_' . $name; | 183 $tokenClass = 'PHP_Token_' . $name; |
183 } else { | 184 } else { |