Code Duplication    Length = 16-16 lines in 2 locations

src/Connectors/SenhorVerdugo/Create.php 1 location

@@ 8-23 (lines=16) @@
5
6
class Create extends SenhorVerdugo
7
{
8
    public function issueWatcher()
9
    {
10
        $issueKey = 'TEST-961';
11
12
        try {
13
            $issueService = new IssueService();
14
            
15
            // watcher's id
16
            $watcher = 'lesstif';
17
            
18
            $issueService->addWatcher($issueKey, $watcher);
19
            
20
        } catch (SenhorVerdugoException $e) {
21
            $this->assertTrue(false, 'add watcher Failed : '.$e->getMessage());
22
        }
23
    }
24
25
    public function issueWorklog()
26
    {

src/Connectors/SenhorVerdugo/Delete.php 1 location

@@ 12-27 (lines=16) @@
9
10
class Delete extends SenhorVerdugo
11
{
12
    public function watchFromIssue()
13
    {
14
        $issueKey = 'TEST-961';
15
16
        try {
17
            $issueService = new IssueService();
18
            
19
            // watcher's id
20
            $watcher = 'lesstif';
21
            
22
            $issueService->removeWatcher($issueKey, $watcher);
23
            
24
        } catch (SenhorVerdugoException $e) {
25
            $this->assertTrue(false, 'add watcher Failed : '.$e->getMessage());
26
        }
27
    }
28
29
    public function comment()
30
    {