helpers.php ➔ fb()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
use \Ngtfkx\Laradeck\FormBuilder\FormBuilder;
4
5
if (!function_exists('fb')) {
6
    /**
7
     * @return FormBuilder;
0 ignored issues
show
Documentation introduced by
The doc-type FormBuilder; could not be parsed: Expected "|" or "end of type", but got ";" at position 11. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
8
     */
9
    function fb()
10
    {
11
        $container = \Illuminate\Container\Container::getInstance();
12
13
        $instance = $container->make(FormBuilder::class);
14
15
        $container->instance(FormBuilder::class, $instance);
16
17
        return $instance;
18
    }
19
}