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

Arrays   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 2
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