Lines Matching refs:label
143 $label = $node->getAttribute('docLabel');
144 if ($label && !$this->containsEndLabel($node->value, $label)) {
148 return "<<<'$label'$nl$label{$this->docStringEndToken}";
154 return "<<<'$label'$nl$value$nl$label{$this->docStringEndToken}";
162 $label = $node->getAttribute('docLabel');
164 if ($label && !$this->containsEndLabel($escaped, $label)) {
167 return "<<<$label$nl$label{$this->docStringEndToken}";
170 return "<<<$label$nl$escaped$nl$label{$this->docStringEndToken}";
182 $label = $node->getAttribute('docLabel');
183 if ($label && !$this->encapsedContainsEndLabel($node->parts, $label)) {
189 return "<<<$label$nl$label{$this->docStringEndToken}";
192 return "<<<$label$nl" . $this->pEncapsList($node->parts, null)
193 . "$nl$label{$this->docStringEndToken}";
1111 protected function containsEndLabel(string $string, string $label, bool $atStart = true): bool { argument
1113 return false !== strpos($string, $label)
1114 && preg_match('/' . $start . $label . '(?:$|[^_A-Za-z0-9\x80-\xff])/', $string);
1118 protected function encapsedContainsEndLabel(array $parts, string $label): bool { argument
1121 … && $this->containsEndLabel($this->escapeString($part->value, null), $label, $i === 0)