protected static function addUsageCount(&$context, $category, $name, $count = 1) {
        if (!isset($context['usedCount'][$category][$name])) {
            $context['usedCount'][$category][$name] = 0;
        }
        return ($context['usedCount'][$category][$name] += $count);
    }
protected static function addUsageCount(&$context, $category, $name, $count = 1) {
        if (!isset($context['usedCount'][$category][$name])) {
            $context['usedCount'][$category][$name] = 0;
        }
        return ($context['usedCount'][$category][$name] += $count);
    }
protected static function addUsageCount ( & $ context , $ category , $ name , $ count = 1 ) { if ( ! isset ( $ context [ 'usedCount' ] [ $ category ] [ $ name ] ) ) { $ context [ 'usedCount' ] [ $ category ] [ $ name ] = 0 ; } return ( $ context [ 'usedCount' ] [ $ category ] [ $ name ] += $ count ) ; }
Add usage count to context

@param array<string,array|string|integer> $context current context
@param string $category category name, can be one of: 'var', 'helpers', 'runtime'
@param string $name used name
@param integer $count increment

@expect 1 when input array('usedCount' => array('test' => array())), 'test', 'testname'
@expect 3 when input array('usedCount' => array('test' => array('testname' => 2))), 'test', 'testname'
@expect 5 when input array('usedCount' => array('test' => array('testname' => 2))), 'test', 'testname', 3
Add usage count to context