Passed
Push — master ( 8cc9a0...f951ba )
by karam
06:13 queued 03:49
created

KMFunctions::getMiddleware()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 1
b 0
f 1
cc 1
rs 10
1
<?php
2
3
4
namespace KMLaravel\ApiGenerator\Helpers;
5
6
7
class KMFunctions
8
{
9
    public static function getMiddleware()
10
    {
11
        return config('apis_generator.middleware');
1 ignored issue
show
Bug introduced by
The function config was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
        return /** @scrutinizer ignore-call */ config('apis_generator.middleware');
Loading history...
12
    }
13
    public static function getRequestAuthAccessibility()
14
    {
15
        return config('apis_generator.request_auth') == true ? "true" : "false";
1 ignored issue
show
Bug introduced by
The function config was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        return /** @scrutinizer ignore-call */ config('apis_generator.request_auth') == true ? "true" : "false";
Loading history...
16
    }
17
}
18