mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
DocSearchIterator
: PHPDoc for $section
is moved above the variable declaration in method accept()
This commit is contained in:
parent
4bece296e5
commit
acf3b7d340
@ -3,6 +3,7 @@
|
||||
|
||||
namespace Icinga\Module\Doc\Search;
|
||||
|
||||
use Icinga\Module\Doc\DocSection;
|
||||
use RecursiveFilterIterator;
|
||||
use RecursiveIteratorIterator;
|
||||
use Icinga\Data\Tree\TreeNodeIterator;
|
||||
@ -46,8 +47,8 @@ class DocSearchIterator extends RecursiveFilterIterator
|
||||
*/
|
||||
public function accept(): bool
|
||||
{
|
||||
/** @var $section DocSection */
|
||||
$section = $this->current();
|
||||
/** @var $section \Icinga\Module\Doc\DocSection */
|
||||
$matches = array();
|
||||
if (($match = $this->search->search($section->getTitle())) !== null) {
|
||||
$matches[] = $match->setMatchType(DocSearchMatch::MATCH_HEADER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user