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
@@ 2977-2982 (lines=6) @@
2974
				}
2975
2976
				// Now we have some credentials, setup WP_Filesystem.
2977
				if ( ! WP_Filesystem( $creds ) ) {
2978
					// Our credentials were no good, ask the user for them again.
2979
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields );
2980
2981
					return true;
2982
				}
2983
2984
				/* If we arrive here, we have the filesystem */
2985