Code Duplication    Length = 8-8 lines in 2 locations

helpers.php 2 locations

@@ 88-95 (lines=8) @@
85
    $output = '';
86
87
    switch($target) {
88
        case 'view':
89
	    $getter = get_the_github_view_url();
90
	    if(!empty($text)) {
91
		$linktext = $text;
92
	    } else {
93
		$linktext = 'View this post on GitHub';
94
	    }
95
	    break;
96
        case 'edit':
97
	    $getter = get_the_github_edit_url();
98
	    if(!empty($text)) {
@@ 96-103 (lines=8) @@
93
		$linktext = 'View this post on GitHub';
94
	    }
95
	    break;
96
        case 'edit':
97
	    $getter = get_the_github_edit_url();
98
	    if(!empty($text)) {
99
		$linktext = $text;
100
	    } else {
101
		$linktext = 'Edit this post on GitHub';
102
	    }
103
	    break;
104
	default:
105
	    $getter = get_the_github_view_url();
106
	    $linktext = 'View this post on GitHub';