From cf2b0417cb3d6fb5ad7c3fd6913b85f4eb488947 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 22 Apr 2017 11:44:49 +1200 Subject: [PATCH] Fix coding conventions --- code/Controllers/CMSMain.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index 5d017da6..61e2d6c7 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -434,17 +434,17 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr // Provide better defaults from filter $filter = $this->getSearchFilter(); if ($filter) { - if (!$childrenMethod) { + if (!$childrenMethod) { $childrenMethod = $filter->getChildrenMethod(); - } - if (!$numChildrenMethod) { + } + if (!$numChildrenMethod) { $numChildrenMethod = $filter->getNumChildrenMethod(); } if (!$filterFunction) { - $filterFunction = function ($node) use ($filter) { - return $filter->isPageIncluded($node); - }; - } + $filterFunction = function ($node) use ($filter) { + return $filter->isPageIncluded($node); + }; + } } // Build set from node and begin marking @@ -495,12 +495,12 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr 'listViewLink' => Controller::join_links( $linkWithSearch, '?view=listview&ParentID=' . $node->ID - ), + ), 'rootTitle' => $rootTitle, 'extraClass' => $this->getTreeNodeClasses($node), ]; - }; - } + }; + } /** * Get extra CSS classes for a page's tree node