Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 240-242 (lines=3) @@
237
			$i      = wp_nonce_tick();
238
239
			// Nonce generated 0-12 hours ago
240
			if ( substr( wp_hash( $i . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
241
				return 1;
242
			}
243
244
			// Nonce generated 12-24 hours ago
245
			if ( substr( wp_hash( ( $i - 1 ) . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
@@ 245-247 (lines=3) @@
242
			}
243
244
			// Nonce generated 12-24 hours ago
245
			if ( substr( wp_hash( ( $i - 1 ) . $action . get_class( $this ), 'nonce' ), - 12, 10 ) == $nonce ) {
246
				return 2;
247
			}
248
249
			// Invalid nonce
250
			return false;