This check looks for method names that are not written in camelCase.
In camelCase names are written without any punctuation, the start of each new
word being marked by a capital letter. Thus the name
database connection seeker becomes databaseConnectionSeeker.
Loading history...
27
{
28
return debug_backtrace();
29
}
30
31
/**
32
* Returns a string representation of the current backtrace for display.
33
*
34
* Note that this explicitly excludes the top two frames, which will be methods from this class.
35
*
36
* @return string
37
*/
38
1
public function getBacktrace()
39
{
40
1
$backtrace = $this->get_debug_backtrace();
41
42
1
$output = "";
43
44
1
$count = 0;
45
1
foreach ($backtrace as $line) {
46
1
if ($count <= 1) {
47
1
$count++;
48
1
continue;
49
}
50
51
1
$output .= "#{$count}: ";
52
53
1
if (isset($line['type']) && $line['type'] != "") {
This check looks for method names that are not written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes
databaseConnectionSeeker
.