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