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