Code Duplication    Length = 20-20 lines in 2 locations

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

@@ 444-463 (lines=20) @@
441
     * @param   integer
442
     * @return  string
443
     */
444
    public function embedStream($channel, $width = 620, $height = 378, $volume = 25)
445
    {
446
        return '<object type="application/x-shockwave-flash"
447
                height="' . $height . '"
448
                width="' . $width . '"
449
                id="live_embed_player_flash"
450
                data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '"
451
                bgcolor="#000000">
452
                <param  name="allowFullScreen"
453
                    value="true" />
454
                <param  name="allowScriptAccess"
455
                    value="always" />
456
                <param  name="allowNetworking"
457
                    value="all" />
458
                <param  name="movie"
459
                    value="http://www.twitch.tv/widgets/live_embed_player.swf" />
460
                <param  name="flashvars"
461
                    value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" />
462
                </object>';
463
    }
464
465
    /**
466
     * Get HTML code for video embedding
@@ 474-493 (lines=20) @@
471
     * @param   integer
472
     * @return  string
473
     */
474
    public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25)
475
    {
476
        return '<object bgcolor="#000000"
477
                    data="http://www.twitch.tv/widgets/archive_embed_player.swf"
478
                    width="' . $width . '"
479
                    height="' . $height . '"
480
                    id="clip_embed_player_flash"
481
                    type="application/x-shockwave-flash">
482
                <param  name="movie"
483
                    value="http://www.twitch.tv/widgets/archive_embed_player.swf" />
484
                <param  name="allowScriptAccess"
485
                    value="always" />
486
                <param  name="allowNetworking"
487
                    value="all" />
488
                <param name="allowFullScreen"
489
                    value="true" />
490
                <param  name="flashvars"
491
                    value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" />
492
                </object>';
493
    }
494
495
    /**
496
     * Get HTML code for chat embedding