| @@ 1726-1740 (lines=15) @@ | ||
| 1723 | * |
|
| 1724 | * @return bool |
|
| 1725 | */ |
|
| 1726 | protected function handleDirectiveBlock($directiveName) |
|
| 1727 | { |
|
| 1728 | // seriously, this || true is required for this statement to work!? |
|
| 1729 | if (($this->openString('{', $directiveValue, null, [';']) || true) && $this->literal('{')) { |
|
| 1730 | $dir = $this->pushSpecialBlock('directive'); |
|
| 1731 | $dir->name = $directiveName; |
|
| 1732 | if ($directiveValue !== null) { |
|
| 1733 | $dir->value = $directiveValue; |
|
| 1734 | } |
|
| 1735 | ||
| 1736 | return true; |
|
| 1737 | } |
|
| 1738 | ||
| 1739 | return false; |
|
| 1740 | } |
|
| 1741 | ||
| 1742 | /** |
|
| 1743 | * @param string $directiveName |
|
| @@ 1763-1778 (lines=16) @@ | ||
| 1760 | * |
|
| 1761 | * @return bool |
|
| 1762 | */ |
|
| 1763 | protected function handleRulesetDefinition($directiveName) |
|
| 1764 | { |
|
| 1765 | //Ruleset Definition |
|
| 1766 | // seriously, this || true is required for this statement to work!? |
|
| 1767 | if (($this->openString('{', $directiveValue, null, [';']) || true) && $this->literal('{')) { |
|
| 1768 | $dir = $this->pushBlock($this->fixTags(['@' . $directiveName])); |
|
| 1769 | $dir->name = $directiveName; |
|
| 1770 | if ($directiveValue !== null) { |
|
| 1771 | $dir->value = $directiveValue; |
|
| 1772 | } |
|
| 1773 | ||
| 1774 | return true; |
|
| 1775 | } |
|
| 1776 | ||
| 1777 | return false; |
|
| 1778 | } |
|
| 1779 | } |
|
| 1780 | ||