Code Duplication    Length = 20-20 lines in 2 locations

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

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