PhpCsFixer\AbstractFixer::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        if ($this instanceof ConfigurableFixerInterface) {
            try {
                $this->configure(null);
            } catch (RequiredFixerConfigurationException $e) {
                // ignore
            }
        }
        if ($this instanceof WhitespacesAwareFixerInterface) {
            $this->whitespacesConfig = $this->getDefaultWhitespacesFixerConfig();
        }
    }

Usage Example

 /**
  * Dynamic yield option set on constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // To be moved back on static when PHP support will be 5.5+
     if (defined('T_YIELD')) {
         self::$loops['yield'] = array('lookupTokens' => T_YIELD, 'neededSuccessors' => array(';', ')'));
     }
 }
All Usage Examples Of PhpCsFixer\AbstractFixer::__construct