Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Condition/Comparer/Scalar_Comparer.php 2 locations

@@ 25-28 (lines=4) @@
22
	 * @return bool
23
	 */
24
	public function is_correct( $a, $comparison_operator, $b ) {
25
		if ( ! is_scalar( $a ) ) {
26
			Incorrect_Syntax_Exception::raise( 'Environment value for comparison is not scalar: ' . print_r( $a, true ) );
27
			return false;
28
		}
29
30
		if ( ! is_scalar( $b ) ) {
31
			Incorrect_Syntax_Exception::raise( 'Supplied comparison value is not scalar: ' . print_r( $b, true ) );
@@ 30-33 (lines=4) @@
27
			return false;
28
		}
29
30
		if ( ! is_scalar( $b ) ) {
31
			Incorrect_Syntax_Exception::raise( 'Supplied comparison value is not scalar: ' . print_r( $b, true ) );
32
			return false;
33
		}
34
35
		switch ( $comparison_operator ) {
36
			case '>':