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...
8
{
9
4
foreach ($array as $element)
10
{
11
4
if (is_array($element))
12
4
return true;
13
3
}
14
15
3
return false;
16
}
17
18
16
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...
19
{
20
16
$merged = $array1;
21
22
16
foreach ($array2 as $key => &$value)
23
{
24
16
$valueMerged = false;
25
26
16
foreach ($merged as $mergedKey => &$item)
27
{
28
16
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.