mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
parent
9af89e6ccf
commit
507ac1c4d7
@ -7,12 +7,12 @@ namespace Icinga\Module\Doc;
|
|||||||
use RecursiveFilterIterator;
|
use RecursiveFilterIterator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Iterator over Markdown files recursively
|
* Recursive iterator over Markdown files
|
||||||
*/
|
*/
|
||||||
class MarkdownFileIterator extends RecursiveFilterIterator
|
class MarkdownFileIterator extends RecursiveFilterIterator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Accept files with .md suffix
|
* Accept files with '.md' suffix
|
||||||
*
|
*
|
||||||
* @return bool Whether the current element of the iterator is acceptable
|
* @return bool Whether the current element of the iterator is acceptable
|
||||||
* through this filter
|
* through this filter
|
||||||
@ -20,6 +20,7 @@ class MarkdownFileIterator extends RecursiveFilterIterator
|
|||||||
public function accept()
|
public function accept()
|
||||||
{
|
{
|
||||||
$current = $this->getInnerIterator()->current();
|
$current = $this->getInnerIterator()->current();
|
||||||
|
/* @var $current \SplFileInfo */
|
||||||
if (! $current->isFile()) {
|
if (! $current->isFile()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user