mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fixed linting
This commit is contained in:
parent
d677694f2e
commit
9cad8ba01b
@ -495,7 +495,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
$nodeThresholdLeaf = SiteTree::config()->get('node_threshold_leaf');
|
$nodeThresholdLeaf = SiteTree::config()->get('node_threshold_leaf');
|
||||||
if ($nodeThresholdLeaf && !$filterFunction) {
|
if ($nodeThresholdLeaf && !$filterFunction) {
|
||||||
$nodeCountCallback = function ($parent, $numChildren) use (&$controller, $nodeThresholdLeaf) {
|
$nodeCountCallback = function ($parent, $numChildren) use (&$controller, $nodeThresholdLeaf) {
|
||||||
if ( !$parent->ID || $numChildren <= $nodeThresholdLeaf) {
|
if (!$parent->ID || $numChildren <= $nodeThresholdLeaf) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return sprintf(
|
return sprintf(
|
||||||
|
@ -126,5 +126,4 @@ class CMSTreeTest extends FunctionalTest
|
|||||||
$data = json_decode($result->getBody(), true);
|
$data = json_decode($result->getBody(), true);
|
||||||
$this->assertEquals(0, count($data));
|
$this->assertEquals(0, count($data));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user