summaryrefslogtreecommitdiff
path: root/ext/intl/tests/cpbi_getLastCodePoint_basic.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /ext/intl/tests/cpbi_getLastCodePoint_basic.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-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.phpt28
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();
}