diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-25 16:07:56 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-25 16:07:56 +0100 |
commit | 367f8452c4e356bd7742ff369204af9869c2bb6a (patch) | |
tree | 2b7e4e3d113a56fcf0c9db1b4cc785396291cafc /scripts | |
parent | 308050e94b23f4410f43b790d6930d3863960dda (diff) | |
download | php-git-367f8452c4e356bd7742ff369204af9869c2bb6a.tar.gz |
Fix phpt reindentation in tidy script
This was missing adjacent SKIPIF/FILE/CLEAN sections.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dev/tidy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dev/tidy.php b/scripts/dev/tidy.php index 967f83bcb3..c7f6591e2f 100644 --- a/scripts/dev/tidy.php +++ b/scripts/dev/tidy.php @@ -126,9 +126,9 @@ function transformTestCode(string $code, callable $transformer): string { } return preg_replace_callback( - '/(--(?:FILE|SKIPIF|CLEAN)--)(.+?)(--[A-Z_]+--)/s', + '/(--(?:FILE|SKIPIF|CLEAN)--)(.+?)(?=--[A-Z_]+--)/s', function(array $matches) use($transformer) { - return $matches[1] . $transformer($matches[2]) . $matches[3]; + return $matches[1] . $transformer($matches[2]); }, $code ); |