for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Groundskeeper\Tokens\Elements;
use Groundskeeper\Tokens\Element;
use Groundskeeper\Tokens\ElementTypes\MetadataContent;
use Groundskeeper\Tokens\ElementTypes\OpenElement;
class Style extends OpenElement implements MetadataContent
{
protected function getAllowedAttributes()
$styleAllowedAttributes = array(
'/^media$/i' => Element::ATTR_CS_STRING,
'/^nonce$/i' => Element::ATTR_CS_STRING,
'/^type$/i' => Element::ATTR_CI_STRING,
'/^scoped$/i' => Element::ATTR_CI_STRING
);
return array_merge(
$styleAllowedAttributes,
parent::getAllowedAttributes()
}