Lines Matching refs:buffer
284 $buffer = '';
307 $bufferContent = PHP_CodeSniffer::prepareForOutput($buffer);
320 if ($inString === '' && $inComment === '' && $buffer !== '') {
323 if (trim($char) !== '' && trim($buffer) === '') {
327 'content' => str_replace("\n", $eolChar, $buffer),
331 $content = PHP_CodeSniffer::prepareForOutput($buffer);
335 $buffer = '';
343 && trim($buffer) !== ''
348 'content' => str_replace("\n", $eolChar, $buffer),
352 $content = PHP_CodeSniffer::prepareForOutput($buffer);
356 $buffer = '';
380 'content' => str_replace("\n", $eolChar, $buffer).$char,
385 $content = PHP_CodeSniffer::prepareForOutput($buffer.$char);
389 $buffer = '';
398 $preStringBuffer = $buffer;
412 $buffer = $preStringBuffer;
424 $buffer .= $char;
435 if ($buffer === $char && $char === '/' && $chars[($i + 1)] !== '*') {
457 $buffer = '';
465 if (isset($this->tokenValues[strtolower($buffer)]) === true
471 $lookAheadLength = ($maxTokenLength - strlen($buffer));
482 $charBuffer = $buffer;
500 $oldType = $this->tokenValues[strtolower($buffer)];
526 $value = $this->tokenValues[strtolower($buffer)];
528 if ($value === 'T_FUNCTION' && $buffer !== 'function') {
537 'content' => $buffer,
541 $content = PHP_CodeSniffer::prepareForOutput($buffer);
551 $newContent = substr(str_replace("\n", $eolChar, $buffer), 0, -1);
560 $content = PHP_CodeSniffer::prepareForOutput(substr($buffer, 0, -1));
615 $buffer = $char;
621 && array_key_exists($buffer, $this->commentTokens) === true
652 $inComment = $buffer;
661 if (strpos($buffer, "\n") !== false) {
665 if ($this->commentTokens[$inComment] === $buffer) {
680 'content' => str_replace("\n", $eolChar, $buffer),
684 $content = PHP_CodeSniffer::prepareForOutput($buffer);
688 $buffer = '';
693 $buffer = '';
698 if (empty($buffer) === false) {
703 'content' => str_replace("\n", $eolChar, $buffer),
707 $content = PHP_CodeSniffer::prepareForOutput($buffer);