Skip to content

Commit 5b3ca6d

Browse files
committed
Fixed code examples in components/finder.rst
1 parent 7998afa commit 5b3ca6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/finder.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ directories::
3030
foreach ($finder as $file) {
3131
// Print the absolute path
3232
print $file->getRealpath()."\n";
33+
3334
// Print the relative path to the file, omitting the filename
3435
print $file->getRelativePath()."\n";
36+
3537
// Print the relative path to the file
3638
print $file->getRelativePathname()."\n";
3739
}
@@ -87,7 +89,7 @@ And it also works with user-defined streams::
8789
$finder = new Finder();
8890
$finder->name('photos*')->size('< 100K')->date('since 1 hour ago');
8991
foreach ($finder->in('s3://bucket-name') as $file) {
90-
// do something
92+
// ... do something
9193

9294
print $file->getFilename()."\n";
9395
}

0 commit comments

Comments
 (0)