In camelCase names are written without any punctuation, the start of each new word
being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes DatabaseProvider.
Loading history...
27
{
28
29
30
/**
31
* Returns the lines where errors should occur.
32
*
33
* The key of the array should represent the line number and the value
34
* should represent the number of errors that should occur on that line.
35
*
36
* @param string $testFile Name of the file with test data.
The doc-type array<int, could not be parsed: Unknown type name "" at position 0. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
Loading history...
39
*/
40
public function getErrorList($testFile)
41
{
42
return array();
43
44
}//end getErrorList()
45
46
47
/**
48
* Returns the lines where warnings should occur.
49
*
50
* The key of the array should represent the line number and the value
51
* should represent the number of warnings that should occur on that line.
52
*
53
* @param string $testFile Name of the file with test data.
The doc-type array<int, could not be parsed: Unknown type name "" at position 0. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
It is not recommended to use PHP's closing tag ?> in files other than templates.
Using a closing tag in PHP files that only contain PHP code is not recommended
as you might accidentally add whitespace after the closing tag which would then
be output by PHP. This can cause severe problems, for example headers cannot be
sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and
it also has no negative effects whatsoever.
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.