for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace gulch\Minify\Processor;
use gulch\Minify\Contract\ProcessorInterface;
class AttributesSimplifier extends Replacer implements ProcessorInterface
{
public function getReplacePatternData(): array
return [
'/ method=("get"|get)/i' => '',
'/ disabled=[^ >]*(.*?)/' => ' disabled',
'/ readonly=[^ >]*(.*?)/' => ' readonly',
'/ selected=[^ >]*(.*?)/' => ' selected',
'/ async=[^ >]*(.*?)/' => ' async',
'/ defer=[^ >]*(.*?)/' => ' defer',
];
}