mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-02-24 02:42:40 +01:00
92 lines
1.2 KiB
Plaintext
92 lines
1.2 KiB
Plaintext
Comments
|
|
-----
|
|
<?php
|
|
|
|
function justForIndentation()
|
|
{
|
|
// Some text
|
|
# Some text
|
|
/* Some text */
|
|
/** Some text */
|
|
/**
|
|
* Some text.
|
|
* Some more text.
|
|
*/
|
|
/*
|
|
* Some text.
|
|
* Some more text.
|
|
*/
|
|
/*
|
|
Some text.
|
|
Some more text.
|
|
*/
|
|
/* Some text.
|
|
More text. */
|
|
/* Some text.
|
|
More text.
|
|
Even more text. */
|
|
$foo;
|
|
}
|
|
-----
|
|
function justForIndentation()
|
|
{
|
|
// Some text
|
|
# Some text
|
|
/* Some text */
|
|
/** Some text */
|
|
/**
|
|
* Some text.
|
|
* Some more text.
|
|
*/
|
|
/*
|
|
* Some text.
|
|
* Some more text.
|
|
*/
|
|
/*
|
|
Some text.
|
|
Some more text.
|
|
*/
|
|
/* Some text.
|
|
More text. */
|
|
/* Some text.
|
|
More text.
|
|
Even more text. */
|
|
$foo;
|
|
}
|
|
-----
|
|
<?php
|
|
|
|
function test()
|
|
{
|
|
// empty
|
|
}
|
|
-----
|
|
function test()
|
|
{
|
|
// empty
|
|
}
|
|
-----
|
|
<?php
|
|
|
|
function noDuplicateComment()
|
|
{
|
|
if (true):
|
|
// TEST 1
|
|
elseif (true):
|
|
// TEST 2
|
|
else:
|
|
// TEST 3
|
|
endif;
|
|
}
|
|
-----
|
|
function noDuplicateComment()
|
|
{
|
|
if (true) {
|
|
// TEST 1
|
|
} elseif (true) {
|
|
// TEST 2
|
|
} else {
|
|
// TEST 3
|
|
}
|
|
}
|