7
$this->hello(); // error here
10
function hello() // error here
11
{ // no error here as brackets can be put anywhere in the pear standard
17
if (TRUE) { // error here
18
echo 'hello'; // no error here as its more than 4 spaces.
20
echo 'bye'; // error here
24
echo 'hello'; // error here
25
}// no error here as its handled by another test.
28
echo 'hello'; // error here
29
} while (TRUE); // no error here as its aligned with the do.
30
}// no error here as its handled by another test.
35
case 'hello': // no error here as switch statements shouldn't be indented ???
47
if ($form->validate()) {
48
$safe = $form->getSubmitValues();
56
function __construct()
58
// $this->open(); // error here
61
public function open()
63
// Some inline stuff that shouldn't error
64
if (TRUE) echo 'hello';
65
foreach ($tokens as $token) echo $token;
69
* This is a comment 1.
70
* This is a comment 2.
71
* This is a comment 3.
72
* This is a comment 4.
74
public function close()
80
foreach ($tokens as $token) {
99
foreach ($tokens as $token) {
100
for ($i = 0; $i < $token; $i++) {
112
This is another c style comment 1.
113
This is another c style comment 2.
114
This is another c style comment 3.
115
This is another c style comment 4.
116
This is another c style comment 5.
129
This comment has a newline in it.
133
public function read()
142
'hello again' => array(
152
public function parse()
155
foreach ($t as $ndx => $token) {
156
if (is_array($token)) {
159
$ts[] = array("token" => $token, "value" => '');
161
$last = count($ts) - 1;
167
$ts[0]['token'] != T_CLASS &&
168
$ts[$last - 2]['token'] == T_OBJECT_OPERATOR &&
169
$ts[$last - 3]['token'] == T_VARIABLE ) {
176
array_push($braces, $token);
184
public function test()
198
if ($a === true || $a === true || $a === true || $a === true ||
199
$a === true || $a === true || $a === true || $a === true) {
205
/* First comment line
212
/* First comment line
222
/* taken from http://de3.php.net/manual/en/reserved.php */
224
/* taken from http://de3.php.net/manual/en/reserved.php */
228
foreach ($elements as $element) {
231
} else if ($somethingElse) {
238
string that spans $numLines lines
245
string that spans nultiple lines
252
string that spans nultiple lines
265
function temp($foo, $bar) {