The parameter $ignore_null is not named in camelCase.
This check marks parameter names that have not been 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 string becomes databaseConnectionString.
Loading history...
13
{
14
8
$results = array();
15
16
8
foreach ($array as $item)
17
{
18
8
if (!is_array($item) && !($item instanceof \ArrayAccess))
19
{
20
continue;
21
}
22
23
8
if ($ignore_null)
24
{
25
5
if (isset($item[$key]))
26
{
27
5
$results[] = $item[$key];
28
}
29
}
30
else
31
{
32
3
if (array_key_exists($key, $item) || ($item instanceof \ArrayAccess && $item->offsetExists($key)))
Avoid variables with short names like $a. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
This check marks parameter names that have not been 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 string becomes
databaseConnectionString.