Code Duplication    Length = 6-6 lines in 2 locations

projects/packages/password-checker/src/class-password-checker.php 1 location

@@ 306-311 (lines=6) @@
303
	 * @return bool does the test pass?
304
	 */
305
	protected function test_compare_to_list( $test_data ) {
306
		if (
307
			! is_callable( array( $this, $test_data['list_callback'] ) )
308
			|| ! is_callable( array( $this, $test_data['compare_callback'] ) )
309
		) {
310
			return false;
311
		}
312
313
		return call_user_func(
314
			array(

projects/plugins/jetpack/_inc/lib/class.jetpack-password-checker.php 1 location

@@ 318-323 (lines=6) @@
315
		$list_callback    = $test_data['list_callback'];
316
		$compare_callback = $test_data['compare_callback'];
317
318
		if (
319
			! is_callable( array( $this, $list_callback ) )
320
			|| ! is_callable( array( $this, $compare_callback ) )
321
		) {
322
			return false;
323
		}
324
325
		$list = call_user_func( array( $this, $list_callback ) );
326
		if ( empty( $list ) ) {