Code Duplication    Length = 3-3 lines in 2 locations

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

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