Code Duplication    Length = 8-8 lines in 2 locations

helpers.php 2 locations

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