protected static function applyTargetedRule(array &$matrix, $rules, $ruleName, $key, $value)
	{
		foreach ($rules as $tagName => $tagRules)
		{
			if (!isset($tagRules[$ruleName]))
			{
				continue;
			}

			foreach ($tagRules[$ruleName] as $targetName)
			{
				$matrix[$tagName][$key][$targetName] = $value;
			}
		}
	}
protected static function applyTargetedRule(array &$matrix, $rules, $ruleName, $key, $value)
	{
		foreach ($rules as $tagName => $tagRules)
		{
			if (!isset($tagRules[$ruleName]))
			{
				continue;
			}

			foreach ($tagRules[$ruleName] as $targetName)
			{
				$matrix[$tagName][$key][$targetName] = $value;
			}
		}
	}
protected static function applyTargetedRule ( array & $ matrix , $ rules , $ ruleName , $ key , $ value ) { foreach ( $ rules as $ tagName => $ tagRules ) { if ( ! isset ( $ tagRules [ $ ruleName ] ) ) { continue ; } foreach ( $ tagRules [ $ ruleName ] as $ targetName ) { $ matrix [ $ tagName ] [ $ key ] [ $ targetName ] = $ value ; } } }
Apply given rule from each applicable tag

For each tag, if the rule has any target we set the corresponding value for each target in the
matrix

@param  array  &$matrix   Settings matrix
@param  array   $rules    Rules for each tag
@param  string  $ruleName Rule name
@param  string  $key      Key in the matrix
@param  integer $value    Value to be set
@return void
Apply given rule from each applicable tag