public function run($value, \DomElement $element, array $rules, \Transphporm\Hook\PseudoMatcher $pseudoMatcher, array $properties = []) { if ($pseudoMatcher->hasFunction('attr')) { $element->removeAttribute($pseudoMatcher->getFuncArgs('attr')); } else { if (strtolower($value[0]) === 'none') { $element->setAttribute('transphporm', 'remove'); } else { $element->setAttribute('transphporm', 'show'); } } }