Code Duplication    Length = 20-20 lines in 2 locations

src/ritero/SDK/TwitchTV/TwitchSDK.php 2 locations

@@ 559-578 (lines=20) @@
556
     * @param int $volume
557
     * @return string
558
     */
559
    public function embedStream($channel, $width = 620, $height = 378, $volume = 25)
560
    {
561
        return '<object type="application/x-shockwave-flash"
562
                height="' . $height . '"
563
                width="' . $width . '"
564
                id="live_embed_player_flash"
565
                data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '"
566
                bgcolor="#000000">
567
                <param  name="allowFullScreen"
568
                    value="true" />
569
                <param  name="allowScriptAccess"
570
                    value="always" />
571
                <param  name="allowNetworking"
572
                    value="all" />
573
                <param  name="movie"
574
                    value="http://www.twitch.tv/widgets/live_embed_player.swf" />
575
                <param  name="flashvars"
576
                    value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" />
577
                </object>';
578
    }
579
580
    /**
581
     * Get HTML code for video embedding
@@ 589-608 (lines=20) @@
586
     * @param int $volume
587
     * @return string
588
     */
589
    public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25)
590
    {
591
        return '<object bgcolor="#000000"
592
                    data="http://www.twitch.tv/widgets/archive_embed_player.swf"
593
                    width="' . $width . '"
594
                    height="' . $height . '"
595
                    id="clip_embed_player_flash"
596
                    type="application/x-shockwave-flash">
597
                <param  name="movie"
598
                    value="http://www.twitch.tv/widgets/archive_embed_player.swf" />
599
                <param  name="allowScriptAccess"
600
                    value="always" />
601
                <param  name="allowNetworking"
602
                    value="all" />
603
                <param name="allowFullScreen"
604
                    value="true" />
605
                <param  name="flashvars"
606
                    value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" />
607
                </object>';
608
    }
609
610
    /**
611
     * Get HTML code for chat embedding