Completed
Push — master ( 69223a...a7228e )
by Restu
12:22
created

helper_function.php ➔ is_arr()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
if (!function_exists("arr_get")) {
4
    /**
5
     * @param $arr
6
     * @param $key
7
     * @return array
8
     */
9
    function arr_get($arr, $key)
10
    {
11
        return \JayaCode\Framework\Core\Helper\HelperArray::getVal($arr, $key);
12
    }
13
}
14
15
if (!function_exists("arr_has_key")) {
16
    /**
17
     * @param $arr
18
     * @param $key
19
     * @return bool
20
     */
21
    function arr_has_key($arr, $key)
22
    {
23
        return \JayaCode\Framework\Core\Helper\HelperArray::hasKey($arr, $key);
24
    }
25
}
26
27
if (!function_exists("is_arr")) {
28
    /**
29
     * @param $arr
30
     * @return bool
31
     */
32
    function is_arr($arr)
33
    {
34
        return \JayaCode\Framework\Core\Helper\HelperArray::isArray($arr);
35
    }
36
}
37
38