setRules() public method

Keys of array are names of fixers or sets. Value for set must be bool (turn it on or off). Value for fixer may be bool (turn it on or off) or array of configuration (turn it on and contains configuration for FixerInterface::configure method).
public setRules ( array $rules ) : self
$rules array
return self
 /**
  * Resolve configuration.
  *
  * @return ConfigurationResolver
  */
 public function resolve()
 {
     $this->resolvePath();
     $this->resolveIsStdIn();
     $this->resolveIsDryRun();
     $this->resolveFormat();
     $this->resolveConfig();
     $this->resolveConfigPath();
     $this->resolveRiskyAllowed();
     $this->fixerFactory->registerCustomFixers($this->getConfig()->getCustomFixers());
     $this->fixerFactory->attachConfig($this->getConfig());
     $this->resolveRules();
     $this->resolveFixers();
     $this->resolveProgress();
     $this->resolveUsingCache();
     $this->resolveCacheFile();
     $this->config->fixers($this->getFixers());
     $this->config->setRules($this->getRules());
     $this->config->setUsingCache($this->usingCache);
     $this->config->setCacheFile($this->cacheFile);
     $this->config->setRiskyAllowed($this->allowRisky);
     return $this;
 }