FOF30\Less\Formatter\Classic::isEmpty PHP Метод

isEmpty() защищенный Метод

Is a block empty?
protected isEmpty ( stdClass $block ) : boolean
$block stdClass The block to check
Результат boolean True if the block has no lines or children
    protected function isEmpty($block)
    {
        if (empty($block->lines)) {
            foreach ($block->children as $child) {
                if (!$this->isEmpty($child)) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }