Code Duplication    Length = 4-6 lines in 2 locations

class-tgm-plugin-activation.php 2 locations

@@ 847-850 (lines=4) @@
844
					return true;
845
				}
846
847
				if ( ! WP_Filesystem( $creds ) ) {
848
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, array() ); // Setup WP_Filesystem.
849
					return true;
850
				}
851
852
				/* If we arrive here, we have the filesystem. */
853
@@ 2978-2983 (lines=6) @@
2975
				}
2976
2977
				// Now we have some credentials, setup WP_Filesystem.
2978
				if ( ! WP_Filesystem( $creds ) ) {
2979
					// Our credentials were no good, ask the user for them again.
2980
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields );
2981
2982
					return true;
2983
				}
2984
2985
				/* If we arrive here, we have the filesystem */
2986