Code Duplication    Length = 20-20 lines in 2 locations

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

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