array_get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ArrayHelpers;
4
5
function array_get($array, $key, $default = null)
6
{
7 5
    return Arr::get($array, $key, $default);
8
}
9
10
function array_has($array, $key)
11
{
12 4
    return Arr::has($array, $key);
13
}
14
15
function array_set(&$array, $key, $value)
16
{
17 1
    return Arr::set($array, $key, $value);
18
}
19