GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-16 lines in 4 locations

applications/workspace/test/Tests/PartTest.php 1 location

@@ 14-28 (lines=15) @@
11
12
13
    /*verifico che una parte si possa scaricare correttamente*/
14
    public function testGetWorkspacePart(){
15
        $schema = __DIR__.'/../../../../api/schemas/part.json';
16
17
        $client = $this->createClient();
18
        $client = $this->logIn($client);
19
20
        $crawler = $client->request('GET', '/api/v1/workspace/6/part/1');
21
        $response = $client->getResponse();
22
23
        //print_r($response);
24
        $data = $client->getResponse()->getContent();
25
        $validator = $this->askValidation($data,$schema);
26
27
        $assert = $this->evalValidation($validator);
28
        $this->assertTrue($assert);
29
    }
30
31

applications/workspace/test/Tests/WorkspaceTest.php 3 locations

@@ 13-28 (lines=16) @@
10
    use AbstractAppTest;
11
12
    /*Verifico che il Workspace si possa scaricare correttamente*/
13
    public function testGetWorkSpace(){
14
        $schema = __DIR__.'/../../../../api/schemas/workspace.json';
15
16
        $client = $this->createClient();
17
        $client = $this->logIn($client);
18
19
        $crawler = $client->request('GET', '/api/v1/workspace/1');
20
        $response = $client->getResponse();
21
        $data = $client->getResponse()->getContent();
22
        $validator = $this->askValidation($data,$schema);
23
24
        $assert = $this->evalValidation($validator);
25
        $this->assertTrue($assert);
26
27
        return $data;
28
    }
29
    /*Verifico che l'elenco dei workspace si possa scaricare correttamente*/
30
    public function testGetWorkspaceList(){
31
        $schema = __DIR__.'/../../../../api/schemas/workspaceList.json';
@@ 30-45 (lines=16) @@
27
        return $data;
28
    }
29
    /*Verifico che l'elenco dei workspace si possa scaricare correttamente*/
30
    public function testGetWorkspaceList(){
31
        $schema = __DIR__.'/../../../../api/schemas/workspaceList.json';
32
33
        $client = $this->createClient();
34
        $client = $this->logIn($client);
35
36
        $crawler = $client->request('GET', '/api/v1/workspace/');
37
        $response = $client->getResponse();
38
39
        $data = $client->getResponse()->getContent();
40
        $validator = $this->askValidation($data,$schema);
41
42
        $assert = $this->evalValidation($validator);
43
        $this->assertTrue($assert);
44
        return $data;
45
    }
46
    /*verifico che si possa condividere il workspace */
47
    public function testGetWorkspaceShare(){
48
        $schema = __DIR__.'/../../../../api/schemas/workspaceShare.json';
@@ 47-60 (lines=14) @@
44
        return $data;
45
    }
46
    /*verifico che si possa condividere il workspace */
47
    public function testGetWorkspaceShare(){
48
        $schema = __DIR__.'/../../../../api/schemas/workspaceShare.json';
49
50
        $client = $this->createClient();
51
        $client = $this->logIn($client);
52
53
        $crawler = $client->request('GET', '/api/v1/workspace/1/share');
54
        $response = $client->getResponse();
55
56
        //print_r($response);
57
        $data = $client->getResponse()->getContent();
58
        $validator = $this->askValidation($data,$schema);
59
60
        $assert = $this->evalValidation($validator);
61
        $this->assertTrue($assert);
62
    }
63