Completed
Push — master ( 7d12ab...84625f )
by Freek
01:22
created

Basic::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace Spatie\Csp\Profiles;
4
5
use Spatie\Csp\Directive;
6
7
class Basic extends Profile
8
{
9
    public function configure()
10
    {
11
        $this
12
            ->addDirective(Directive::CONNECT, "'self'")
13
            ->addDirective(Directive::DEFAULT, "'self'")
14
            ->addDirective(Directive::FORM_ACTION, "'self'")
15
            ->addDirective(Directive::IMG, "'self'")
16
            ->addDirective(Directive::MEDIA, "'self'")
17
            ->addDirective(Directive::SCRIPT, "'self'")
18
            ->addDirective(Directive::STYLE, "'self'");
19
    }
20
}