mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
8860f92aee
commit
6505348a2b
1 changed files with 3 additions and 7 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue