瀏覽代碼

Mostly useless tweak for iterators example.

Daniele Alessandri 11 年之前
父節點
當前提交
9da1648145
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      examples/RedisCollectionsIterators.php

+ 8 - 8
examples/RedisCollectionsIterators.php

@@ -38,9 +38,9 @@ for ($i = 0; $i < 5; $i++) {
 }
 
 // === Keyspace iterator based on SCAN ===
-echo 'Scan the keyspace matching only our prefixed keys:' . PHP_EOL;
+echo 'Scan the keyspace matching only our prefixed keys:', PHP_EOL;
 foreach (new Iterator\Keyspace($client, 'predis:*') as $key) {
-    echo " - $key" . PHP_EOL;
+    echo " - $key", PHP_EOL;
 }
 
 /* OUTPUT
@@ -51,9 +51,9 @@ Scan the keyspace matching only our prefixed keys:
 */
 
 // === Set iterator based on SSCAN ===
-echo 'Scan members of `predis:set`:' . PHP_EOL;
+echo 'Scan members of `predis:set`:', PHP_EOL;
 foreach (new Iterator\SetKey($client, 'predis:set') as $member) {
-    echo " - $member" . PHP_EOL;
+    echo " - $member", PHP_EOL;
 }
 
 /* OUTPUT
@@ -66,9 +66,9 @@ Scan members of `predis:set`:
 */
 
 // === Sorted set iterator based on ZSCAN ===
-echo 'Scan members and ranks of `predis:zset`:' . PHP_EOL;
+echo 'Scan members and ranks of `predis:zset`:', PHP_EOL;
 foreach (new Iterator\SortedSetKey($client, 'predis:zset') as $member => $rank) {
-    echo " - $member [rank: $rank]" . PHP_EOL;
+    echo " - $member [rank: $rank]", PHP_EOL;
 }
 
 /* OUTPUT
@@ -81,9 +81,9 @@ Scan members and ranks of `predis:zset`:
 */
 
 // === Hash iterator based on HSCAN ===
-echo 'Scan fields and values of `predis:hash`:' . PHP_EOL;
+echo 'Scan fields and values of `predis:hash`:', PHP_EOL;
 foreach (new Iterator\HashKey($client, 'predis:hash') as $field => $value) {
-    echo " - $field => $value" . PHP_EOL;
+    echo " - $field => $value", PHP_EOL;
 }
 
 /* OUTPUT