Code Duplication    Length = 9-10 lines in 2 locations

lib/Ajde/Embed/Vimeo.php 1 location

@@ 13-21 (lines=9) @@
10
        }
11
    }
12
13
    public function getCode()
14
    {
15
        $this->convertUrlToEmbed();
16
        $this->_setHeight();
17
        $this->_setWidth();
18
        $this->_code = str_replace('portrait=0', 'portrait=0', $this->_code);
19
20
        return $this->_code;
21
    }
22
23
    private function _getVimeoId()
24
    {

lib/Ajde/Embed/Youtube.php 1 location

@@ 13-22 (lines=10) @@
10
        }
11
    }
12
13
    public function getCode()
14
    {
15
        $this->convertUrlToEmbed();
16
        $this->_setHeight();
17
        $this->_setWidth();
18
        $this->_code = str_replace('" frameborder', '?rel=0&wmode=transparent&autohide=1" frameborder',
19
            $this->_code);
20
21
        return $this->_code;
22
    }
23
24
    private function _getYoutubeId()
25
    {