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
		}
103
		case 'edit': { 
104
			$getter = get_the_github_edit_url();
@@ 103-110 (lines=8) @@
100
			}
101
			break;
102
		}
103
		case 'edit': { 
104
			$getter = get_the_github_edit_url();
105
			if ( ! empty( $text ) ) { 
106
				$linktext = $text;
107
			} else { 
108
				$linktext = 'Edit this post on GitHub';
109
			}
110
			break;
111
		}
112
		default: { 
113
			$getter = get_the_github_view_url();