dialect()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
use Pmochine\LaravelTongue\Dialect;
4
use Pmochine\LaravelTongue\Tongue;
5
6
if (! function_exists('tongue')) {
7
    function tongue()
8
    {
9
        return app()->make(Tongue::class);
10
    }
11
}
12
if (! function_exists('dialect')) {
13
    function dialect()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
14
    {
15
        return app()->make(Dialect::class);
16
    }
17
}
18