diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index b9c2c8d8..c00c004e 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -495,7 +495,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $nodeThresholdLeaf = SiteTree::config()->get('node_threshold_leaf'); if ($nodeThresholdLeaf && !$filterFunction) { $nodeCountCallback = function ($parent, $numChildren) use (&$controller, $nodeThresholdLeaf) { - if ( !$parent->ID || $numChildren <= $nodeThresholdLeaf) { + if (!$parent->ID || $numChildren <= $nodeThresholdLeaf) { return null; } return sprintf( diff --git a/tests/controller/CMSTreeTest.php b/tests/controller/CMSTreeTest.php index 3500a444..a8f8e3da 100644 --- a/tests/controller/CMSTreeTest.php +++ b/tests/controller/CMSTreeTest.php @@ -126,5 +126,4 @@ class CMSTreeTest extends FunctionalTest $data = json_decode($result->getBody(), true); $this->assertEquals(0, count($data)); } - }