Minor coding standards fixes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326811 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Brett Bieber 2012-07-25 13:19:41 +00:00
parent 8860f92aee
commit 6505348a2b

View file

@ -54,18 +54,14 @@
<?php
$iterator = new GlobIterator('*.dll', FilesystemIterator::KEY_AS_FILENAME);
if(!$iterator->count())
{
if (!$iterator->count()) {
echo 'No matches';
}
else
{
} else {
$n = 0;
printf("Matched %d item(s)\r\n", $iterator->count());
foreach($iterator as $item)
{
foreach ($iterator as $item) {
printf("[%d] %s\r\n", ++$n, $iterator->key());
}
}