Code Duplication    Length = 3-3 lines in 2 locations

class-tgm-plugin-activation.php 2 locations

@@ 1032-1034 (lines=3) @@
1029
1030
					if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) {
1031
						return trailingslashit( $to_path );
1032
					} else {
1033
						return new WP_Error(
1034
							'rename_failed',
1035
							esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'tgmpa' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'tgmpa' ),
1036
							array(
1037
								'found'    => $subdir_name,
@@ 1042-1044 (lines=3) @@
1039
							)
1040
						);
1041
					}
1042
				} elseif ( empty( $subdir_name ) ) {
1043
					return new WP_Error(
1044
						'packaged_wrong',
1045
						esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'tgmpa' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'tgmpa' ),
1046
						array(
1047
							'found'    => $subdir_name,