Completed
Push — master ( 2533f4...3c7122 )
by David
10:37 queued 27s
created

helpers.php ➔ template_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
26
function template_namespace(): string
27
{
28
    return 'duck-funk-core::'.config('duck-funk.template');
29
}
30