Code Duplication    Length = 3-3 lines in 2 locations

src/includes/wp-async-task/wp-async-task.php 2 locations

@@ 220-222 (lines=3) @@
217
			$i      = wp_nonce_tick();
218
219
			// Nonce generated 0-12 hours ago
220
			if ( substr( wp_hash( $i . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
221
				return 1;
222
			}
223
224
			// Nonce generated 12-24 hours ago
225
			if ( substr( wp_hash( ( $i - 1 ) . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
@@ 225-227 (lines=3) @@
222
			}
223
224
			// Nonce generated 12-24 hours ago
225
			if ( substr( wp_hash( ( $i - 1 ) . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
226
				return 2;
227
			}
228
229
			// Invalid nonce
230
			return false;