コード例 #1
0
ファイル: TernarySpacing.php プロジェクト: allocine/twigcs
 /**
  * @param integer $severity
  * @param integer $spacing
  */
 public function __construct($severity, $spacing = 1)
 {
     parent::__construct($severity);
     $this->spacing = $spacing;
 }
コード例 #2
0
ファイル: OperatorSpacing.php プロジェクト: allocine/twigcs
 /**
  * @param integer                 $severity
  * @param string[]                $operators
  * @param integer                 $spacing
  * @param WhitelistInterface|null $whitelist
  */
 public function __construct($severity, array $operators, $spacing, WhitelistInterface $whitelist = null)
 {
     parent::__construct($severity, $whitelist);
     $this->spacing = $spacing;
     $this->operators = $operators;
 }
コード例 #3
0
 /**
  * @param integer $spaces
  */
 public function __construct($severity, $spaces = 0)
 {
     parent::__construct($severity);
     $this->spaces = $spaces;
 }
コード例 #4
0
 /**
  * @param integer $spaceBefore
  * @param integer $spaceAfter
  */
 public function __construct($severity, $spaceBefore = 0, $spaceAfter = 1)
 {
     parent::__construct($severity);
     $this->spaceBefore = $spaceBefore;
     $this->spaceAfter = $spaceAfter;
 }
コード例 #5
0
 /**
  * @param integer $severity
  * @param integer $spacing
  */
 public function __construct($severity, $spacing = 0, $controlStructureSpacing = 1)
 {
     parent::__construct($severity);
     $this->spacing = $spacing;
     $this->controlStructureSpacing = $controlStructureSpacing;
 }
コード例 #6
0
 /**
  * @param integer                 $severity
  * @param string[]                $punctuations
  * @param integer                 $spacing
  * @param WhitelistInterface|null $whitelist
  */
 public function __construct($severity, array $punctuations, $spacing, WhitelistInterface $whitelist = null)
 {
     parent::__construct($severity, $whitelist);
     $this->spacing = $spacing;
     $this->punctuations = $punctuations;
 }