/**
* Formats the name of the resource.
*
* Resources with children are colored.
*
* @param PuliResource $resource The resource.
*
* @return string|null The formatted name.
*/
private function formatName(PuliResource $resource)
{
$name = $resource->getName();
if ($resource->hasChildren()) {
return '<c1>' . $name . '</c1>';
}
return $name;
}