Completed
Push — feature/js_cache_busting ( c6efdc...8fd5e4 )
by Tristan
26:58 queued 11:30
created

FullFrameGuard::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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
    public function handle($request, Closure $next) {
16
17
        $response = $next($request);
18
19
        $response->headers->set('X-Frame-Options', 'DENY');
20
21
        return $response;
22
    }
23
}
24