PhpCsFixer\ConfigInterface::getRiskyAllowed PHP Method

getRiskyAllowed() public method

Check if it is allowed to run risky fixers.
public getRiskyAllowed ( ) : boolean
return boolean
    public function getRiskyAllowed();

Usage Example

 /**
  * Resolves risky allowed flag.
  */
 private function resolveRiskyAllowed()
 {
     if (null !== $this->options['allow-risky']) {
         $this->allowRisky = 'yes' === $this->options['allow-risky'];
         return;
     }
     $this->allowRisky = $this->config->getRiskyAllowed();
 }