Completed
Push — master ( 87a229...1012d8 )
by Restu
15:25
created

helper_function.php ➔ arr_push()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
use JayaCode\Framework\Core\Helper\HelperArray\ArrayH;
4
5
if (!function_exists("arr_get")) {
6
    /**
7
     * @param $arr
8
     * @param $path
9
     * @param $default
10
     * @return array
11
     */
12
    function arr_get($arr, $path, $default = null)
13
    {
14
        return ArrayH::get($arr, $path, $default);
15
    }
16
17
    function arr_push(&$arr, $arr2)
18
    {
19
        return ArrayH::arrPush($arr, $arr2);
20
    }
21
}
22