Code Duplication    Length = 7-7 lines in 2 locations

lib/Trello/Api/Member/Boards.php 1 location

@@ 44-50 (lines=7) @@
41
     *
42
     * @return array
43
     */
44
    public function filter($id, $filter = 'all')
45
    {
46
        $allowed = array('all', 'members', 'organization', 'public', 'open', 'closed', 'pinned', 'unpinned', 'starred');
47
        $filters = $this->validateAllowedParameters($allowed, $filter, 'filter');
48
49
        return $this->get($this->getPath($id).'/'.implode(',', $filters));
50
    }
51
52
    /**
53
     * Get boads a given member is invited to

lib/Trello/Api/Organization/Boards.php 1 location

@@ 44-50 (lines=7) @@
41
     *
42
     * @return array
43
     */
44
    public function filter($id, $filter = 'all')
45
    {
46
        $allowed = array('all', 'members', 'organization', 'public', 'open', 'closed', 'pinned', 'unpinned', 'starred');
47
        $filters = $this->validateAllowedParameters($allowed, $filter, 'filter');
48
49
        return $this->get($this->getPath($id).'/'.implode(',', $filters));
50
    }
51
}
52