\n\s+$/s', $content, $matches, PREG_OFFSET_CAPTURE) > 0) { foreach ($matches[0] as $match) $this->fail( $s, $this->line_number_for_offset($content, $match[1]), (strpos('?>', $match[0]) !== false) ? 'Leading whitespace' : 'Trailing whitespace'); } else $this->pass(); } } } return 'ExtraWhitespace'; ?>