mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +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;
|
namespace Icinga\Module\Doc\Search;
|
||||||
|
|
||||||
|
use Icinga\Module\Doc\DocSection;
|
||||||
use RecursiveFilterIterator;
|
use RecursiveFilterIterator;
|
||||||
use RecursiveIteratorIterator;
|
use RecursiveIteratorIterator;
|
||||||
use Icinga\Data\Tree\TreeNodeIterator;
|
use Icinga\Data\Tree\TreeNodeIterator;
|
||||||
@ -46,8 +47,8 @@ class DocSearchIterator extends RecursiveFilterIterator
|
|||||||
*/
|
*/
|
||||||
public function accept(): bool
|
public function accept(): bool
|
||||||
{
|
{
|
||||||
|
/** @var $section DocSection */
|
||||||
$section = $this->current();
|
$section = $this->current();
|
||||||
/** @var $section \Icinga\Module\Doc\DocSection */
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
if (($match = $this->search->search($section->getTitle())) !== null) {
|
if (($match = $this->search->search($section->getTitle())) !== null) {
|
||||||
$matches[] = $match->setMatchType(DocSearchMatch::MATCH_HEADER);
|
$matches[] = $match->setMatchType(DocSearchMatch::MATCH_HEADER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user