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...
13
{
14
4
foreach ($array as $element)
15
{
16
4
if (is_array($element))
17
4
{
18
1
return true;
19
}
20
3
}
21
22
3
return false;
23
}
24
25
22
public static function array_merge_defaults(array &$array1, array &$array2, $keyField)
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...
26
{
27
22
$merged = $array1;
28
29
22
foreach ($array2 as $key => &$value)
30
{
31
17
$valueMerged = false;
32
33
17
foreach ($merged as $mergedKey => &$item)
34
{
35
17
if (is_array($item) && array_key_exists($keyField, $item) && $item[$keyField] == $value[$keyField])
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
.