Completed
Pull Request — master (#4)
by ARCANEDEV
05:54
created

helpers.php ➔ json()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Arcanedev\Json\Json;
4
5
if ( ! function_exists('json')) {
6
7
    /**
8
     * Get the JSON instance.
9
     *
10
     * @param  string|null  $path
11
     *
12
     * @return Arcanedev\Json\Json
13
     */
14
    function json($path = null) {
15
        return Json::make($path);
16
    }
17
}
18