Completed
Push — feature/screening-plan ( 46ccc1...3f87fd )
by Tristan
14:07 queued 07:47
created

FullFrameGuard   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 1
1
<?php
2
namespace App\Http\Middleware;
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
4
use Closure;
5
6
class FullFrameGuard
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class FullFrameGuard
Loading history...
7
{
8
    /**
9
     * Set X-FRAME-OPTIONS header to DENY
10
     *
11
     * @param  \Illuminate\Http\Request  $request
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 1 spaces after parameter type; 2 found
Loading history...
12
     * @param  \Closure  $next
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 17 spaces after parameter type; 2 found
Loading history...
13
     * @return mixed
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
14
     */
15 8
    public function handle($request, Closure $next) {
16
17 8
        $response = $next($request);
18
19 8
        $response->headers->set('X-Frame-Options', 'DENY');
20
21 8
        return $response;
22
    }
23
}
24