2012-05-11 16:18:14 +02:00
|
|
|
Comments
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
2013-01-15 18:21:42 +01:00
|
|
|
function justForIndentation()
|
|
|
|
{
|
2012-05-11 16:18:14 +02:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
-----
|
2013-01-15 18:21:42 +01:00
|
|
|
function justForIndentation()
|
|
|
|
{
|
2012-05-11 16:18:14 +02:00
|
|
|
// 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;
|
2015-10-02 11:03:12 +02:00
|
|
|
}
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
function test()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
function test()
|
|
|
|
{
|
|
|
|
// empty
|
2022-09-11 16:57:53 +02:00
|
|
|
}
|
|
|
|
-----
|
|
|
|
<?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
|
|
|
|
}
|
|
|
|
}
|