ArrayUtilities does not seem to conform to the naming convention (Utils?$).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
11
{
12
6
public static function is_multidimensional(array &$array)
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.
function is_multidimensional() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
13
{
14
6
foreach ($array as $element)
15
{
16
6
if (is_array($element))
17
{
18
1
return true;
19
}
20
}
21
22
5
return false;
23
}
24
25
30
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.
function array_merge_defaults() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
26
{
27
30
$merged = $array1;
28
29
30
foreach ($array2 as $key => &$value)
30
{
31
2
$valueMerged = false;
32
33
2
foreach ($merged as $mergedKey => &$item)
34
{
35
2
if (is_array($item) && array_key_exists($keyField, $item) && $item[$keyField] == $value[$keyField])
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.