factory()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
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 0
dl 0
loc 5
rs 10
1
<?php
2
3
if (!function_exists('builder'))
4
{
5
    /**
6
     * @return \Bavix\Builder\Builder
7
     */
8
    function builder()
9
    {
10
        global $builder;
11
12
        return $builder;
13
    }
14
}
15
16
if (!function_exists('config'))
17
{
18
    /**
19
     * @param string $name
20
     *
21
     * @return \Bavix\Slice\Slice
22
     */
23
    function config(string $name)
24
    {
25
        global $builder;
26
27
        return $builder->config()->get($name);
28
    }
29
}
30
31
if (!function_exists('factory'))
32
{
33
    /**
34
     * @return \Bavix\Processors\Factory
35
     */
36
    function factory()
37
    {
38
        global $builder;
39
40
        return $builder->factory();
41
    }
42
}
43