| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function __construct($overwrites = []) |
|
| 29 | { |
||
| 30 | $rules = [ |
||
| 31 | /* |
||
| 32 | * 2.2 ABNF Definition of ABNF - char-val |
||
| 33 | */ |
||
| 34 | 1 | 'quoted_string' => s($this->DQUOTE, star(c(range(0x20, 0x21), range(0x23, 0x7E))), $this->DQUOTE), |
|
| 35 | 1 | 'case_sensitive_string' => s('%s', $this->quoted_string), |
|
| 36 | 1 | 'case_insensitive_string' => s(opt('%i'), $this->quoted_string), |
|
| 37 | 1 | 'char_val' => c($this->case_insensitive_string, $this->case_sensitive_string), |
|
| 38 | ]; |
||
| 39 | |||
| 40 | 1 | parent::__construct(array_merge($rules, $overwrites)); |
|
| 41 | 1 | } |
|
| 43 |