Code Duplication    Length = 10-13 lines in 4 locations

src/CrossSiteScripting.php 1 location

@@ 22-34 (lines=13) @@
19
20
    private $logger;
21
22
    public function __construct(ClientInterface $client, array $compare, LoggerInterface $logger = null)
23
    {
24
        $this->client = $client;
25
        $this->compare = $compare;
26
27
        if (empty($logger)) {
28
            $logger = new Logger;
29
        }
30
31
        $this->logger = $logger;
32
33
34
    }
35
36
    public function isVulnerable($target)
37
    {

src/LocalFileDownload.php 1 location

@@ 15-25 (lines=11) @@
12
13
    private $logger;
14
15
    public function __construct(ClientInterface $client, LoggerInterface $logger = null)
16
    {
17
        $this->client = $client;
18
19
        if (empty($logger)) {
20
            $logger = new Logger;
21
        }
22
        $this->logger = $logger;
23
24
25
    }
26
27
    public function isVulnerable($target)
28
    {

src/LocalFileInclusion.php 1 location

@@ 20-29 (lines=10) @@
17
18
    private $logger;
19
20
    public function __construct(ClientInterface $client, LoggerInterface $logger = null)
21
    {
22
        $this->client = $client;
23
24
        if (empty($logger)) {
25
            $logger = new Logger;
26
        }
27
28
        $this->logger = $logger;
29
    }
30
31
    public function isVulnerable($target)
32
    {

src/SqlInjection.php 1 location

@@ 19-29 (lines=11) @@
16
17
    private $logger;
18
19
    public function __construct(ClientInterface $client, array $errors, LoggerInterface $logger = null)
20
    {
21
        $this->client = $client;
22
        $this->errors = $errors;
23
24
        if (empty($logger)) {
25
            $logger = new Logger;
26
        }
27
28
        $this->logger = $logger;
29
    }
30
31
    public function isVulnerable($target)
32
    {