Completed
Push — master ( bcfc51...2533f4 )
by David
01:24 queued 11s
created

helpers.php ➔ package_namespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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