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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.1.0/CodeSniffer/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.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
class MyClass
 
3
{
 
4
    $varName  = 'hello';
 
5
    $var_name = 'hello';
 
6
    $varname  = 'hello';
 
7
    $_varName = 'hello';
 
8
 
 
9
    public $varName  = 'hello';
 
10
    public $var_name = 'hello';
 
11
    public $varname  = 'hello';
 
12
    public $_varName = 'hello';
 
13
 
 
14
    protected $varName  = 'hello';
 
15
    protected $var_name = 'hello';
 
16
    protected $varname  = 'hello';
 
17
    protected $_varName = 'hello';
 
18
 
 
19
    private $_varName  = 'hello';
 
20
    private $_var_name = 'hello';
 
21
    private $_varname  = 'hello';
 
22
    private $varName   = 'hello';
 
23
}
 
24
 
 
25
class MyClass
 
26
{
 
27
  function func1()
 
28
  {
 
29
    function func2()
 
30
    {
 
31
     return $a;
 
32
    }
 
33
    return $data;
 
34
  }
 
35
}
 
36
 
 
37
class MyClass
 
38
{
 
39
    public function prepare() {}
 
40
    public function paint() {}
 
41
}
 
42
 
 
43
if (true) {
 
44
    class MyClass
 
45
    {
 
46
        $varName  = 'hello';
 
47
        $var_name = 'hello';
 
48
    }
 
49
}
 
50
 
 
51
class MyClass {
 
52
    function myFunction($cc, $cv) {
 
53
        $req = "delete from blah
 
54
                where not (POP_{$cc}_A =
 
55
'{$this->def["POP_{$cc}_A"]}'
 
56
                         and POP_{$cc}_B =
 
57
'{$this->def["POP_{$cc}_B"]}')";
 
58
    }
 
59
}
 
60
?>