Code Duplication    Length = 20-20 lines in 2 locations

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

@@ 489-508 (lines=20) @@
486
     * @param int $volume
487
     * @return string
488
     */
489
    public function embedStream($channel, $width = 620, $height = 378, $volume = 25)
490
    {
491
        return '<object type="application/x-shockwave-flash"
492
                height="' . $height . '"
493
                width="' . $width . '"
494
                id="live_embed_player_flash"
495
                data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '"
496
                bgcolor="#000000">
497
                <param  name="allowFullScreen"
498
                    value="true" />
499
                <param  name="allowScriptAccess"
500
                    value="always" />
501
                <param  name="allowNetworking"
502
                    value="all" />
503
                <param  name="movie"
504
                    value="http://www.twitch.tv/widgets/live_embed_player.swf" />
505
                <param  name="flashvars"
506
                    value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" />
507
                </object>';
508
    }
509
510
    /**
511
     * Get HTML code for video embedding
@@ 519-538 (lines=20) @@
516
     * @param int $volume
517
     * @return string
518
     */
519
    public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25)
520
    {
521
        return '<object bgcolor="#000000"
522
                    data="http://www.twitch.tv/widgets/archive_embed_player.swf"
523
                    width="' . $width . '"
524
                    height="' . $height . '"
525
                    id="clip_embed_player_flash"
526
                    type="application/x-shockwave-flash">
527
                <param  name="movie"
528
                    value="http://www.twitch.tv/widgets/archive_embed_player.swf" />
529
                <param  name="allowScriptAccess"
530
                    value="always" />
531
                <param  name="allowNetworking"
532
                    value="all" />
533
                <param name="allowFullScreen"
534
                    value="true" />
535
                <param  name="flashvars"
536
                    value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" />
537
                </object>';
538
    }
539
540
    /**
541
     * Get HTML code for chat embedding