public static create ( ) : |
||
Результат |
public static function create()
{
return new self();
}
/** * Parses the '--CONFIG--' block of a '.test' file and determines what fixers should be used. * * @param string $config * * @return FixerInterface[] */ protected function determineFixers($config) { $ruleSet = json_decode($config, true); if (JSON_ERROR_NONE !== json_last_error()) { throw new \InvalidArgumentException('Malformed JSON configuration.'); } return FixerFactory::create()->registerBuiltInFixers()->useRuleSet(new RuleSet($ruleSet))->getFixers(); }