mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Apply tidy to SKIPIF and CLEAN section as well
This commit is contained in:
parent
0582c40907
commit
bfceb710be
@ -117,7 +117,7 @@ function transformTestCode(string $code, callable $transformer): string {
|
||||
}
|
||||
|
||||
return preg_replace_callback(
|
||||
'/(--FILE--)(.+?)(--[A-Z_]+--)/s',
|
||||
'/(--(?:FILE|SKIPIF|CLEAN)--)(.+?)(--[A-Z_]+--)/s',
|
||||
function(array $matches) use($transformer) {
|
||||
return $matches[1] . $transformer($matches[2]) . $matches[3];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user