Subversion Repositories Applications.framework

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<?php
2
 
3
// This line is okay... just!
4
if (($reallyLongVarName === true) || (is_array($anotherLongVarName) == false)) {
5
    // Do something.
6
}
7
 
8
// This line is not okay... just!
9
if (($reallyLongVarName === true) || (is_array($anotherLongVarName) === false)) {
10
    // Do something.
11
}
12
 
13
 
14
// This line is is too long.
15
if (($anotherReallyLongVarName === true) || (is_array($anotherReallyLongVarName) === false)) {
16
    // Do something.
17
}
18
 
19
// This is a really really long comment that is going to go to exactly 80 chars.
20
 
21
// This is another really really long comment that is going to go well over 80 characters.
22
 
23
// And here is just a bunch of spaces that exceeds the line length.
24
 
25
 
26
// And here are some spaces exactly 80 chars long.
27
 
28
 
29
// This is a really really really really long long comment that is going to go to exactly 100 chars.
30
 
31
// This is another really really really really really long comment that is going to go well over 100 characters.
32
 
33
// And here is just a bunch of spaces that exceeds the max line length.
34
 
35
 
36
// And here are some spaces exactly 100 chars long.
37
 
38
?>
39
<b>Hello</b>b>
40
<?php
41
echo 'hi';
42
?>
43
 
44
<?php
45
/**
46
 * Comments contining CVS IDs can be long, but should be ignored because
47
 * they cannot be changed by the developer. Same with license URLs.
48
 *
34 aurelien 49
 * @version CVS: $Id: LineLengthUnitTest.inc 34 2009-04-09 07:34:39Z aurelien $
5 aurelien 50
 * @license http://www.freebsd.org/copyright/freebsd-license.html BSD License (2 Clause)
51
 */
52
 ?>
53
 
54
<?php
55
// This is another really long comment that is going to go well over 100 characters, with no closing php tag after it.