examples/AdManager/v201811/InventoryService/GetAdUnitHierarchy.php
private static function generateTab($depth)
    {
        $builder = '';

        if ($depth > 0) {
            $builder .= '  ';
        }

        for ($i = 1; $i < $depth; $i++) {
            $builder .= '|  ';
        }

        $builder .= '+--';

        return $builder;
    }
private static function generateTab($depth)
    {
        $builder = '';

        if ($depth > 0) {
            $builder .= '  ';
        }

        for ($i = 1; $i < $depth; $i++) {
            $builder .= '|  ';
        }

        $builder .= '+--';

        return $builder;
    }
private static function generateTab ( $ depth ) { $ builder = '' ; if ( $ depth > 0 ) { $ builder .= '  ' ; } for ( $ i = 1 ; $ i < $ depth ; $ i ++ ) { $ builder .= '|  ' ; } $ builder .= '+--' ; return $ builder ; }
Generates tabs to represent branching to children.

@param int $depth the depth the tree has reached
@return string the tabs to insert in front of the root unit
Generates tabs to represent branching to children .