PhpCsFixer\FixerFactory::create PHP Method

create() public static method

Create instance.
public static create ( ) : FixerFactory
return FixerFactory
    public static function create()
    {
        return new self();
    }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of PhpCsFixer\FixerFactory::create