diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
commit | f8d795820e780a6322e054c26c581570613c14f0 (patch) | |
tree | 99d3ae01ce564752807341c5743863b4c92513f8 /ext/intl/tests/cpbi_getLastCodePoint_basic.phpt | |
parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz |
Reindent phpt files
Diffstat (limited to 'ext/intl/tests/cpbi_getLastCodePoint_basic.phpt')
-rw-r--r-- | ext/intl/tests/cpbi_getLastCodePoint_basic.phpt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/intl/tests/cpbi_getLastCodePoint_basic.phpt b/ext/intl/tests/cpbi_getLastCodePoint_basic.phpt index 08aa01e90b..a1c33cf230 100644 --- a/ext/intl/tests/cpbi_getLastCodePoint_basic.phpt +++ b/ext/intl/tests/cpbi_getLastCodePoint_basic.phpt @@ -20,25 +20,25 @@ var_dump($codepoint_it->getLastCodePoint()); //before the last read codepoint is moving backwards $p = $codepoint_it->first(); while ($p != IntlBreakIterator::DONE) { - $c = $codepoint_it->getLastCodePoint(); - if ($c > 0) - var_dump(sprintf('U+%04X', $codepoint_it->getLastCodePoint())); - else - var_dump($c); - //it's a post-increment operation as to the codepoint, i.e., it gives the codepoint - //starting at the initial position and only then moves the pointer forward - $p = $codepoint_it->next(); + $c = $codepoint_it->getLastCodePoint(); + if ($c > 0) + var_dump(sprintf('U+%04X', $codepoint_it->getLastCodePoint())); + else + var_dump($c); + //it's a post-increment operation as to the codepoint, i.e., it gives the codepoint + //starting at the initial position and only then moves the pointer forward + $p = $codepoint_it->next(); } echo "Now backwards\n"; $p = $codepoint_it->last(); while ($p != IntlBreakIterator::DONE) { - $c = $codepoint_it->getLastCodePoint(); - if ($c > 0) - var_dump(sprintf('U+%04X', $codepoint_it->getLastCodePoint())); - else - var_dump($c); - $p = $codepoint_it->previous(); + $c = $codepoint_it->getLastCodePoint(); + if ($c > 0) + var_dump(sprintf('U+%04X', $codepoint_it->getLastCodePoint())); + else + var_dump($c); + $p = $codepoint_it->previous(); } |