Passed
Push — master ( b81e61...edaa23 )
by Radu
01:29
created

Arrays::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
eloc 1
nc 2
nop 3
1
<?php
2
namespace WebServCo\Framework\Utils;
3
4
final class Arrays
5
{
6
    public static function get($array, $key, $defaultValue = false)
7
    {
8
        return array_key_exists($key, $array) ? $array[$key] : $defaultValue;
9
    }
10
}
11