Blame | Last modification | View Log | RSS feed
<?php
// Correct declarations.
class CorrectClassDeclaration
{
}
abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
{
}
final class CorrectClassDeclarationWithImplements implements correctClassDeclaration
{
}
// Incorrect placement of opening braces
class IncorrectBracePlacement {}
class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
// Incorrect code placement for opening brace.
class IncorrectCodeAfterOpeningBrace
{ echo phpinfo();
}//end class
class IncorrectClassDeclarationWithExtends extends correctClassDeclaration
{
}
class IncorrectBracePlacement
{
}
abstract class CodeSnifferFail
extends
ArrayObject
implements
Serializable,
Iterator,
Countable,
OuterIterator,
RecursiveIterator {
}
abstract class CodeSnifferFail
extends
ArrayObject
implements
Serializable,
Iterator,
Countable,
OuterIterator,
RecursiveIterator
{
}
?>