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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.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
 
// This is a normal block comment that might
3
 
// talk about functions like echo and print and if/else but
4
 
// is not commented out code.
5
 
 
6
 
// if (empty($this)) {echo 'This is will not work';}
7
 
 
8
 
/*
9
 
function myFunction()
10
 
{
11
 
 
12
 
}//end myFunction()
13
 
*/
14
 
 
15
 
//eval('$var = 4;');
16
 
//$string = '$var = 4;';
17
 
//eval($string);
18
 
 
19
 
#eval('$var = 4;');
20
 
#$string = '$var = 4;';
21
 
#eval($string);
22
 
 
23
 
if ($blah) {
24
 
    // This is a multi-line comment that goes over two indented
25
 
    // lines.
26
 
 
27
 
    // If it's null, then there must be no parameters for this
28
 
    // method.
29
 
}
30
 
 
31
 
// short.
32
 
 
33
 
// Continue, as we're done with this token.
34
 
 
35
 
/**
36
 
 * The listeners array.
37
 
 *
38
 
 * @var array(PHP_CodeSniffer_Sniff)
39
 
 */
40
 
 
41
 
//
42
 
 
43
 
/*
44
 
*/
45
 
 
46
 
?>