Code Duplication    Length = 9-9 lines in 2 locations

src/wp-includes/functions.php 2 locations

@@ 3893-3901 (lines=9) @@
3890
	 */
3891
	if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {
3892
		if ( function_exists( '__' ) ) {
3893
			if ( ! empty( $parent_class ) ) {
3894
				/* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
3895
				trigger_error( sprintf( __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
3896
					$class, $parent_class, $version, '<pre>__construct()</pre>' ) );
3897
			} else {
3898
				/* translators: 1: PHP class name, 2: version number, 3: __construct() method */
3899
				trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
3900
					$class, $version, '<pre>__construct()</pre>' ) );
3901
			}
3902
		} else {
3903
			if ( ! empty( $parent_class ) ) {
3904
				trigger_error( sprintf( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
@@ 3902-3910 (lines=9) @@
3899
				trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
3900
					$class, $version, '<pre>__construct()</pre>' ) );
3901
			}
3902
		} else {
3903
			if ( ! empty( $parent_class ) ) {
3904
				trigger_error( sprintf( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
3905
					$class, $parent_class, $version, '<pre>__construct()</pre>' ) );
3906
			} else {
3907
				trigger_error( sprintf( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
3908
					$class, $version, '<pre>__construct()</pre>' ) );
3909
			}
3910
		}
3911
	}
3912
3913
}