Lines Matching refs:content
91 $content = $openTag['content'];
93 if (trim($content) === '') {
98 if ($content === '<%') {
102 } else if (strpos($content, '<script ') !== false) {
109 $data = array($content);
124 if ($openTag['code'] === T_OPEN_TAG_WITH_ECHO && $content === '<%=') {
130 $content,
151 …eg_match('`((?:<s)?cript (?:[^>]+)?language=[\'"]?php[\'"]?(?:[^>]+)?>)`i', $content, $match) === 1
154 $snippet = $this->getSnippet($content, $match[1]);
162 if (strpos($content, '<%=') !== false) {
164 $snippet = $this->getSnippet($content, '<%=');
168 } else if (strpos($content, '<%') !== false) {
170 $snippet = $this->getSnippet($content, '<%');
183 * @param string $content The content of the HTML token.
189 protected function getSnippet($content, $start='', $length=40) argument
194 $startPos = strpos($content, $start);
200 $snippet = substr($content, $startPos, $length);
201 if ((strlen($content) - $startPos) > $length) {
217 …* @param string $content The expected content of the closing tag to match the open…
221 protected function findClosingTag(PHP_CodeSniffer_File $phpcsFile, $tokens, $stackPtr, $content) argument
225 if ($closer !== false && $content === trim($tokens[$closer]['content'])) {