Code Duplication    Length = 20-20 lines in 2 locations

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

@@ 558-577 (lines=20) @@
555
     * @return string
556
     * @deprecated Will be replaced with Embed method
557
     */
558
    public function embedStream($channel, $width = 620, $height = 378, $volume = 25)
559
    {
560
        return '<object type="application/x-shockwave-flash"
561
                height="' . $height . '"
562
                width="' . $width . '"
563
                id="live_embed_player_flash"
564
                data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '"
565
                bgcolor="#000000">
566
                <param  name="allowFullScreen"
567
                    value="true" />
568
                <param  name="allowScriptAccess"
569
                    value="always" />
570
                <param  name="allowNetworking"
571
                    value="all" />
572
                <param  name="movie"
573
                    value="http://www.twitch.tv/widgets/live_embed_player.swf" />
574
                <param  name="flashvars"
575
                    value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" />
576
                </object>';
577
    }
578
579
    /**
580
     * Get HTML code for video embedding
@@ 589-608 (lines=20) @@
586
     * @return string
587
     * @deprecated Will be replaced with Embed method
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