Author: Dariusz Rumiński (dariusz.ruminski@gmail.com)
Inheritance: implements phpcsfixer\FixerInterface
 /**
  * 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(';', ')'));
     }
 }
 /**
  * Dynamic yield option set on constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // To be moved back to compile time property declaration when PHP support of PHP CS Fixer will be 5.5+
     if (defined('T_YIELD')) {
         self::$loops['yield'] = array('lookupTokens' => T_YIELD, 'neededSuccessors' => array(';', ')'));
     }
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $indent = '(?P<indent>(?: {2}|\\t)*)';
     // e.g. @param <hint> <$var>
     $paramTag = '(?P<tag>param)\\s+(?P<hint>[^$]+?)\\s+(?P<var>&?\\$[^\\s]+)';
     // e.g. @return <hint>
     $otherTags = '(?P<tag2>return|throws|var|type)\\s+(?P<hint2>[^\\s]+?)';
     // optional <desc>
     $desc = '(?:\\s+(?P<desc>\\V*))';
     $this->regex = '/^' . $indent . ' \\* @(?:' . $paramTag . '|' . $otherTags . ')' . $desc . '\\s*$/';
     $this->regexCommentLine = '/^' . $indent . ' \\*(?! @)(?:\\s+(?P<desc>\\V+))(?<!\\*\\/)$/';
 }
 /**
  * {@inheritdoc}
  */
 public function __construct()
 {
     parent::__construct();
     $this->tags = Annotation::getTagsWithTypes();
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->proxyFixer = $this->createProxyFixer();
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->BOM = pack('CCC', 0xef, 0xbb, 0xbf);
 }