Code Duplication    Length = 5-5 lines in 2 locations

src/Manager/ListManager.php 2 locations

@@ 39-43 (lines=5) @@
36
    {
37
        $lists = $this->client->api('board')->lists()->all($board->getId());
38
39
        foreach ($lists as $list) {
40
            if ($list['name'] == $listName) {
41
                return new Cardlist($this->client, $list['id']);
42
            }
43
        }
44
45
        return;
46
    }
@@ 67-71 (lines=5) @@
64
            $lists = array_merge($lists, $this->client->api('board')->lists()->all($board->getId()));
65
        }
66
67
        foreach ($lists as $list) {
68
            if ($list['name'] == $listName) {
69
                return new Cardlist($this->client, $list['id']);
70
            }
71
        }
72
73
        return;
74
    }