Code Duplication    Length = 5-6 lines in 6 locations

src/condition/ConditionMicroDbParser.php 6 locations

@@ 31-36 (lines=6) @@
28
                    $cond = \array_values($cond);
29
                    $type = \array_shift($cond);
30
                    switch ($type) {
31
                        case Condition::EQUALS:
32
                            /** @noinspection TypeUnsafeComparisonInspection */
33
                            if ($item[$cond[0]] != $cond[1]) {
34
                                return false;
35
                            }
36
                            break;
37
                        case Condition::NOT_EQUALS:
38
                            /** @noinspection TypeUnsafeComparisonInspection */
39
                            if ($item[$cond[0]] == $cond[1]) {
@@ 37-42 (lines=6) @@
34
                                return false;
35
                            }
36
                            break;
37
                        case Condition::NOT_EQUALS:
38
                            /** @noinspection TypeUnsafeComparisonInspection */
39
                            if ($item[$cond[0]] == $cond[1]) {
40
                                return false;
41
                            }
42
                            break;
43
                        case Condition::LESS_THAN:
44
                            if ($item[$cond[0]] >= $cond[1]) {
45
                                return false;
@@ 43-47 (lines=5) @@
40
                                return false;
41
                            }
42
                            break;
43
                        case Condition::LESS_THAN:
44
                            if ($item[$cond[0]] >= $cond[1]) {
45
                                return false;
46
                            }
47
                            break;
48
                        case Condition::GREATER_THAN:
49
                            if ($item[$cond[0]] <= $cond[1]) {
50
                                return false;
@@ 48-52 (lines=5) @@
45
                                return false;
46
                            }
47
                            break;
48
                        case Condition::GREATER_THAN:
49
                            if ($item[$cond[0]] <= $cond[1]) {
50
                                return false;
51
                            }
52
                            break;
53
                        case Condition::LESS_OR_EQUALS:
54
                            if ($item[$cond[0]] > $cond[1]) {
55
                                return false;
@@ 53-57 (lines=5) @@
50
                                return false;
51
                            }
52
                            break;
53
                        case Condition::LESS_OR_EQUALS:
54
                            if ($item[$cond[0]] > $cond[1]) {
55
                                return false;
56
                            }
57
                            break;
58
                        case Condition::GREATER_OR_EQUALS:
59
                            if ($item[$cond[0]] < $cond[1]) {
60
                                return false;
@@ 58-62 (lines=5) @@
55
                                return false;
56
                            }
57
                            break;
58
                        case Condition::GREATER_OR_EQUALS:
59
                            if ($item[$cond[0]] < $cond[1]) {
60
                                return false;
61
                            }
62
                            break;
63
                        case Condition::BETWEEN:
64
                            if ($item[$cond[0]] < $cond[1] || $item[$cond[0]] > $cond[2]) {
65
                                return false;