~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/Generic/Tests/Files/LineLengthUnitTest.inc

  • Committer: Bazaar Package Importer
  • Author(s): Jack Bates
  • Date: 2008-10-01 17:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081001173943-2dy06n1e8zwyw1o8
Tags: 1.1.0-1
* New upstream release
* Acknowledge NMU, thanks Jan

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 *
49
 
 * @version CVS: $Id: LineLengthUnitTest.inc,v 1.5 2007/11/26 22:11:49 squiz Exp $
50
 
 * @license http://www.freebsd.org/copyright/freebsd-license.html BSD License (2 Clause)
51
 
 */
52
 
 ?>