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
//  Correct declarations.
4
class CorrectClassDeclaration
5
{
6
 
7
}
8
 
9
abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
10
{
11
 
12
}
13
 
14
final class CorrectClassDeclarationWithImplements implements correctClassDeclaration
15
{
16
 
17
}
18
 
19
 
20
// Incorrect placement of opening braces
21
class IncorrectBracePlacement {}
22
class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
23
class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
24
 
25
// Incorrect code placement for opening brace.
26
class IncorrectCodeAfterOpeningBrace
27
{ echo phpinfo();
28
 
29
}//end class
30
 
31
class IncorrectClassDeclarationWithExtends extends correctClassDeclaration
32
 
33
{
34
 
35
}
36
 
37
class IncorrectBracePlacement
38
 {
39
 }
40
 
41
abstract class CodeSnifferFail
42
    extends
43
        ArrayObject
44
    implements
45
        Serializable,
46
        Iterator,
47
        Countable,
48
        OuterIterator,
49
        RecursiveIterator {
50
}
51
 
52
abstract class CodeSnifferFail
53
    extends
54
        ArrayObject
55
    implements
56
        Serializable,
57
        Iterator,
58
        Countable,
59
        OuterIterator,
60
        RecursiveIterator
61
{
62
}
63
?>