Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/class.jetpack-gutenberg.php 1 location

@@ 167-169 (lines=3) @@
164
	 * @return string The unprefixed extension name.
165
	 */
166
	public static function remove_extension_prefix( $extension_name ) {
167
		if ( 0 === strpos( $extension_name, 'jetpack/' ) || 0 === strpos( $extension_name, 'jetpack-' ) ) {
168
			return substr( $extension_name, strlen( 'jetpack/' ) );
169
		}
170
		return $extension_name;
171
	}
172

projects/packages/blocks/src/class-blocks.php 1 location

@@ 114-116 (lines=3) @@
111
	 * @return string The unprefixed extension name.
112
	 */
113
	public static function remove_extension_prefix( $extension_name ) {
114
		if ( 0 === strpos( $extension_name, 'jetpack/' ) || 0 === strpos( $extension_name, 'jetpack-' ) ) {
115
			return substr( $extension_name, strlen( 'jetpack/' ) );
116
		}
117
		return $extension_name;
118
	}
119