Fix coding conventions

This commit is contained in:
Ingo Schommer 2017-04-22 11:44:49 +12:00
parent 4b19987ad2
commit cf2b0417cb

View File

@ -434,17 +434,17 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
// Provide better defaults from filter // Provide better defaults from filter
$filter = $this->getSearchFilter(); $filter = $this->getSearchFilter();
if ($filter) { if ($filter) {
if (!$childrenMethod) { if (!$childrenMethod) {
$childrenMethod = $filter->getChildrenMethod(); $childrenMethod = $filter->getChildrenMethod();
} }
if (!$numChildrenMethod) { if (!$numChildrenMethod) {
$numChildrenMethod = $filter->getNumChildrenMethod(); $numChildrenMethod = $filter->getNumChildrenMethod();
} }
if (!$filterFunction) { if (!$filterFunction) {
$filterFunction = function ($node) use ($filter) { $filterFunction = function ($node) use ($filter) {
return $filter->isPageIncluded($node); return $filter->isPageIncluded($node);
}; };
} }
} }
// Build set from node and begin marking // Build set from node and begin marking
@ -495,12 +495,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
'listViewLink' => Controller::join_links( 'listViewLink' => Controller::join_links(
$linkWithSearch, $linkWithSearch,
'?view=listview&ParentID=' . $node->ID '?view=listview&ParentID=' . $node->ID
), ),
'rootTitle' => $rootTitle, 'rootTitle' => $rootTitle,
'extraClass' => $this->getTreeNodeClasses($node), 'extraClass' => $this->getTreeNodeClasses($node),
]; ];
}; };
} }
/** /**
* Get extra CSS classes for a page's tree node * Get extra CSS classes for a page's tree node