`DocSearchIterator`: PHPDoc for `$section` is moved above the variable declaration in method `accept()`

This commit is contained in:
raviks789 2023-08-14 16:35:26 +02:00
parent 4bece296e5
commit acf3b7d340
1 changed files with 2 additions and 1 deletions

View File

@ -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);