File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ protected function handleMenuEntry(MenuNode $currentMenu, MenuEntryNode $entryNo
64
64
false ,
65
65
1 ,
66
66
'' ,
67
- $ this -> isInRootline ($ documentEntry , $ compilerContext ->getDocumentNode ()->getDocumentEntry ()),
68
- $ this -> isCurrent ($ documentEntry , $ currentPath ),
67
+ self :: isInRootline ($ documentEntry , $ compilerContext ->getDocumentNode ()->getDocumentEntry ()),
68
+ self :: isCurrent ($ documentEntry , $ currentPath ),
69
69
);
70
70
if (!$ currentMenu ->hasOption ('titlesonly ' )) {
71
71
$ this ->addSubSectionsToMenuEntries ($ documentEntry , $ newEntryNode , $ maxDepth - 1 );
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ protected function handleMenuEntry(MenuNode $currentMenu, MenuEntryNode $entryNo
51
51
false ,
52
52
1 ,
53
53
'' ,
54
- $ this -> isInRootline ($ documentEntry , $ compilerContext ->getDocumentNode ()->getDocumentEntry ()),
55
- $ this -> isCurrent ($ documentEntry , $ currentPath ),
54
+ self :: isInRootline ($ documentEntry , $ compilerContext ->getDocumentNode ()->getDocumentEntry ()),
55
+ self :: isCurrent ($ documentEntry , $ currentPath ),
56
56
);
57
57
if (!$ currentMenu ->hasOption ('titlesonly ' ) && $ maxDepth > 1 ) {
58
58
$ this ->addSubSectionsToMenuEntries ($ documentEntry , $ newEntryNode , $ maxDepth );
Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ private function attachDocumentEntriesToParents(
43
43
}
44
44
}
45
45
46
- private function isInRootline (DocumentEntryNode $ menuEntry , DocumentEntryNode $ currentDoc ): bool
46
+ private static function isInRootline (DocumentEntryNode $ menuEntry , DocumentEntryNode $ currentDoc ): bool
47
47
{
48
48
return $ menuEntry ->getFile () === $ currentDoc ->getFile ()
49
49
|| ($ currentDoc ->getParent () !== null
50
50
&& self ::isInRootline ($ menuEntry , $ currentDoc ->getParent ()));
51
51
}
52
52
53
- private function isCurrent (DocumentEntryNode $ menuEntry , string $ currentPath ): bool
53
+ private static function isCurrent (DocumentEntryNode $ menuEntry , string $ currentPath ): bool
54
54
{
55
55
return $ menuEntry ->getFile () === $ currentPath ;
56
56
}
You can’t perform that action at this time.
0 commit comments