Fixed linting

This commit is contained in:
Ingo Schommer 2017-04-12 08:21:02 +12:00
parent d677694f2e
commit 9cad8ba01b
2 changed files with 1 additions and 2 deletions

View File

@ -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(

View File

@ -126,5 +126,4 @@ class CMSTreeTest extends FunctionalTest
$data = json_decode($result->getBody(), true);
$this->assertEquals(0, count($data));
}
}