GateOptional   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A noGate() 0 6 1
1
<?php
2
3
namespace Fireworkweb\Gates\Middlewares;
4
5
class GateOptional extends Gate
6
{
7
    protected function noGate($routeName)
8
    {
9
        logger()->info(
10
            "[fireworkweb/laravel-gates] No matching gate for '{$routeName}' route."
11
        );
12
    }
13
}
14