MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
Class comment without indent. More...
Public Member Functions | |
__construct ( $a) | |
testNoDoc ( $testVar) | |
testNeedReturn ( $testVar) | |
testNeedReturnFromYield ( $testVar) | |
testSingleSpaces ( $testVar, $_) | |
testLongTypes ( $aBool, $anInt) | |
testIntReturn () | |
testComplexClosureReturn () | |
There's a return in the body of the function, and a closure, so a return tag is needed. | |
testLongTypesNoComment ( $aBool, $anInt) | |
testLongArrayTypes ( $bools, $ints) | |
testLongTypesMixed ( $aBool, $mixed) | |
testTypesSpacing ( $aBool, $anInt) | |
testTagTypos ( $aBool, $anInt) | |
@params bool $aBool A bool @params int $anInt An int | |
testVariablePunctation ( $aBool, $anInt, $aFloatArray) | |
testInheritWrongCase ( $stuff, $more, $blah) | |
testDeprecated ( $stuff, $more, $blah) | |
testDirectionParam ( $in, &$out, &$inOut) | |
testVariadicArgInArgListWithComment1 ( $key, $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithComment2 ( $key,... $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithComment3 ( $key, $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithComment4 ( $key,... $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithoutComment1 ( $key, $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithoutComment2 ( $key,... $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithoutComment3 ( $key, $params) | |
Test with variadic argument in the list. | |
testVariadicArgInArgListWithoutComment4 ( $key,... $params) | |
Test with variadic argument in the list. | |
testVariadicArgNotInArgList1 ( $key) | |
Test with variadic argument not in the list. | |
testVariadicArgNotInArgList2 ( $key) | |
testVariadicArgNotInArgList3 ( $key) | |
testVariadicArgNotInArgList4 ( $key) | |
testVariadicArgNotDocumented ( $key,... $params) | |
testVariadicArgWithComments1 ($key) | |
testVariadicArgWithComments2 ($key) | |
testVariadicSpacing (... $args) | |
testLegacyVariadicSpacing () | |
testDefaultNull ( $key=null, $value=null, $extra=null) | |
Test default null. | |
testOptionalKeyword ( $key, $value=null) | |
Test optional key word. | |
superfluousAnnotation () | |
superfluousAnnotationVariadic () | |
testPassByReference ( $refDoc, &$refReal, &$refMatch, &$refNull=null) | |
testVarArgsDocPassByReference (... $refDoc) | |
testVarArgsRealPassByReference (&... $refReal) | |
testBadReturnAnnotation ( $arg) | |
testBadParamAnnotation () | |
testBadThrowsAnnotation () | |
testUppercasePrimitive ( $i) | |
testUppercasePrimitiveArray ( $s) | |
testDocObject ( $obj) | |
testReturnTypeHint ( $i) | |
testReturnTypeHintVoid ( $i) | |
testDuplicateReturn () | |
testCommentDoesNotBelongsToFunction ( $needsTest) | |
testBadParamName ( $sameCase, $notsamecase) | |
testAbstractBadReturnType () | |
testAbstractWithPhpReturnType () | |
testAbstractBadParameterType ( $param) | |
testPartiallyStaticParamTypes ( $a, int $b) | |
testStarAlignedDoc () | |
Some text. | |
testSyntaxDoc () | |
testVerySpacyDoc () | |
testSpacingDocSingleLine () | |
testSpacingDocSingleLineSpacy () | |
SingleLineSpacy | |
testCloseTagOwnLine () | |
testSyntaxDocTag ( $a) | |
Comment. | |
testSyntaxDocTag2 ( $a) | |
Comment. | |
testMissingDocStar () | |
A text on two lines, but missing a doc star. | |
testMissingDocStar2 () | |
A text on two lines, but missing a doc star and end comment on same line. | |
testMissingDocStar3 () | |
Missing doc star with empty. | |
Protected Attributes | |
$missingProtected | |
Class comment without indent.
no space before class brace.
TestFailedExamples::superfluousAnnotation | ( | ) |
string | $key |
TestFailedExamples::superfluousAnnotationVariadic | ( | ) |
string | ...$params |
|
abstract |
integer | $param |
|
abstract |
TestFailedExamples::testBadParamAnnotation | ( | ) |
TestFailedExamples::testBadParamName | ( | $sameCase, | |
$notsamecase ) |
string | $sameCase | |
string | $notSameCase |
TestFailedExamples::testBadReturnAnnotation | ( | $arg | ) |
TestFailedExamples::testBadThrowsAnnotation | ( | ) |
TestFailedExamples::testDefaultNull | ( | $key = null, | |
$value = null, | |||
$extra = null ) |
Test default null.
string | $key | |
mixed | $value | |
mixed | null | $extra |
TestFailedExamples::testDeprecated | ( | $stuff, | |
$more, | |||
$blah ) |
TestFailedExamples::testDirectionParam | ( | $in, | |
& | $out, | ||
& | $inOut ) |
[in] | int | $in | A comment |
[out] | int | &$out | A comment |
[in,out] | int | &$inOut | A comment |
TestFailedExamples::testDocObject | ( | $obj | ) |
object | $obj |
TestFailedExamples::testDuplicateReturn | ( | ) |
TestFailedExamples::testIntReturn | ( | ) |
TestFailedExamples::testLegacyVariadicSpacing | ( | ) |
string | $args,... |
TestFailedExamples::testLongArrayTypes | ( | $bools, | |
$ints ) |
boolean[] | $bools | A bool array |
integer[] | $ints | A int array |
TestFailedExamples::testLongTypes | ( | $aBool, | |
$anInt ) |
boolean | $aBool | A bool With a long comment |
integer | $anInt | An int |
TestFailedExamples::testLongTypesMixed | ( | $aBool, | |
$mixed ) |
boolean | $aBool | A bool |
integer | string | boolean | $mixed | A mixed var |
TestFailedExamples::testLongTypesNoComment | ( | $aBool, | |
$anInt ) |
boolean | $aBool | |
integer | $anInt |
TestFailedExamples::testMissingDocStar3 | ( | ) |
Missing doc star with empty.
line in there
TestFailedExamples::testNeedReturn | ( | $testVar | ) |
int | $testVar | This should start uppercase and end stop. |
TestFailedExamples::testNeedReturnFromYield | ( | $testVar | ) |
int | $testVar | This should start uppercase and end stop. |
TestFailedExamples::testOptionalKeyword | ( | $key, | |
$value = null ) |
Test optional key word.
string[optional] | $key |
string[optional]|null | $value |
TestFailedExamples::testPartiallyStaticParamTypes | ( | $a, | |
int | $b ) |
int | string | $a |
TestFailedExamples::testPassByReference | ( | $refDoc, | |
& | $refReal, | ||
& | $refMatch, | ||
& | $refNull = null ) |
int | &$refDoc | |
int | $refReal | |
int | $refDoesNotMatch | Mixed test for ParamNameNoMatch and ParamPassByReference |
int | $refNull |
TestFailedExamples::testReturnTypeHint | ( | $i | ) |
int | $i |
TestFailedExamples::testReturnTypeHintVoid | ( | $i | ) |
int | $i |
TestFailedExamples::testSingleSpaces | ( | $testVar, | |
$_ ) |
int | $testVar | This is test. |
int | $_ | For test. |
TestFailedExamples::testStarAlignedDoc | ( | ) |
Some text.
And other test
TestFailedExamples::testSyntaxDocTag | ( | $a | ) |
Comment.
string | $a | A comment |
TestFailedExamples::testSyntaxDocTag2 | ( | $a | ) |
Comment.
string[] | $a | A comment
|
TestFailedExamples::testTagTypos | ( | $aBool, | |
$anInt ) |
@params bool $aBool A bool @params int $anInt An int
Exception
TestFailedExamples::testTypesSpacing | ( | $aBool, | |
$anInt ) |
bool | $aBool | A bool |
int | $anInt | An int |
Exception | And some text |
TestFailedExamples::testUppercasePrimitive | ( | $i | ) |
Int | $i |
TestFailedExamples::testUppercasePrimitiveArray | ( | $s | ) |
String[] | $s |
TestFailedExamples::testVarArgsDocPassByReference | ( | $refDoc | ) |
int | &...$refDoc |
TestFailedExamples::testVarArgsRealPassByReference | ( | &... | $refReal | ) |
int | ...$refReal |
TestFailedExamples::testVariablePunctation | ( | $aBool, | |
$anInt, | |||
$aFloatArray ) |
{bool} | [$aBool]: A bool |
[int] | {$anInt}: An int |
float[] [$aFloatArray]: A float array
{Exception} |
TestFailedExamples::testVariadicArgInArgListWithComment1 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgInArgListWithComment2 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgInArgListWithComment3 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | ...$params A comment |
TestFailedExamples::testVariadicArgInArgListWithComment4 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | ...$params A comment |
TestFailedExamples::testVariadicArgInArgListWithoutComment1 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgInArgListWithoutComment2 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgInArgListWithoutComment3 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | ...$params A comment |
TestFailedExamples::testVariadicArgInArgListWithoutComment4 | ( | $key, | |
$params ) |
Test with variadic argument in the list.
string | $key | A comment |
string | ...$params A comment |
TestFailedExamples::testVariadicArgNotDocumented | ( | $key, | |
$params ) |
string | $key | A comment |
TestFailedExamples::testVariadicArgNotInArgList1 | ( | $key | ) |
Test with variadic argument not in the list.
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgNotInArgList2 | ( | $key | ) |
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgNotInArgList3 | ( | $key | ) |
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgNotInArgList4 | ( | $key | ) |
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgWithComments1 | ( | $key | ) |
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicArgWithComments2 | ( | $key | ) |
string | $key | A comment |
string | $params,... | A comment |
TestFailedExamples::testVariadicSpacing | ( | $args | ) |
string | ...$args |