Passed
Push — master ( 5471a5...321c34 )
by Radu
01:44
created

Utils   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isA() 0 3 2
1
<?php
2
namespace WebServCo\Framework;
3
4
final class Utils
5
{
6
    public static function isA($array, $key, $defaultValue = null)
7
    {
8
        return array_key_exists($key, $array) ? $array[$key] : $defaultValue;
9
    }
10
}
11