Code Duplication    Length = 4-6 lines in 2 locations

class-tgm-plugin-activation.php 2 locations

@@ 861-864 (lines=4) @@
858
					return true;
859
				}
860
861
				if ( ! WP_Filesystem( $creds ) ) {
862
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, array() ); // Setup WP_Filesystem.
863
					return true;
864
				}
865
866
				/* If we arrive here, we have the filesystem. */
867
@@ 3025-3030 (lines=6) @@
3022
				}
3023
3024
				// Now we have some credentials, setup WP_Filesystem.
3025
				if ( ! WP_Filesystem( $creds ) ) {
3026
					// Our credentials were no good, ask the user for them again.
3027
					request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields );
3028
3029
					return true;
3030
				}
3031
3032
				/* If we arrive here, we have the filesystem */
3033