Code Duplication    Length = 6-6 lines in 2 locations

src/Variables/AsWellAs.php 2 locations

@@ 21-26 (lines=6) @@
18
     */
19
    public function compile(ExpressionBuilder $builder, $table_name, $negate = false) {
20
        // normal case: left_condition or right_condition
21
        if (!$negate) {
22
            return $builder->orX
23
                ( $this->left()->compile($builder, $table_name)
24
                , $this->right()->compile($builder, $table_name)
25
                );
26
        }
27
        // negated case: not (left_condition or right_condition)
28
        //             = not left_condition and not right_condition
29
        if ($negate) {
@@ 29-34 (lines=6) @@
26
        }
27
        // negated case: not (left_condition or right_condition)
28
        //             = not left_condition and not right_condition
29
        if ($negate) {
30
            return $builder->andX
31
                ( $this->left()->compile($builder, $table_name, true)
32
                , $this->right()->compile($builder, $table_name, true)
33
                );
34
        }
35
    }
36
37
}