Completed
Push — master ( e1cce4...d2c19b )
by David
09:34 queued 11s
created

helpers.php ➔ faker()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
function core()
4
{
5
    return app('duck-funk-core');
6
}
7
8
function faker($property = null)
9
{
10
    $faker = \Faker\Factory::create();
11
12
    if ($property) {
13
        return $faker->{$property};
14
    }
15
16
    return $faker;
17
}
18