Completed
Push — master ( 16c1be...b126dd )
by Ashley
01:06
created

GitLab   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A verify() 0 4 1
A headers() 0 4 1
1
<?php
2
3
namespace Clarkeash\Shield\Services;
4
5
use Illuminate\Http\Request;
6
7
class GitLab extends BaseService
8
{
9
    public function verify(Request $request): bool
10
    {
11
        return $this->header($request, 'X-Gitlab-Token') == config('shield.services.gitlab.token');
12
    }
13
14
    public function headers(): array
15
    {
16
        return ['X-Gitlab-Token'];
17
    }
18
}
19