Completed
Push — master ( b10c64...511a60 )
by Freek
02:20
created

Basic   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerDirectives() 0 11 1
1
<?php
2
3
namespace Spatie\Csp\Profiles\Profile;
4
5
class Basic extends Profile
6
{
7
    public function registerDirectives()
8
    {
9
        $this
10
            ->addDirective(Directive::DEFAULT, 'none')
11
            ->addDirective(Directive::CONNECT, 'self')
12
            ->addDirective(Directive::FORM, 'self')
13
            ->addDirective(Directive::IMG, 'self')
14
            ->addDirective(Directive::SCRIPT, 'self')
15
            ->addDirective(Directive::STYLE, 'self')
16
            ->addDirective(Directive::MEDIA, 'self');
17
    }
18
}