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

KMFunctions   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
dl 0
loc 9
c 1
b 0
f 1
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestAuthAccessibility() 0 3 2
A getMiddleware() 0 3 1
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