Code Duplication    Length = 10-10 lines in 2 locations

tests/unit/target/TargetTest.php 1 location

@@ 128-137 (lines=10) @@
125
        }
126
    }
127
128
    protected function checkDoesntMatch(array $targets)
129
    {
130
        foreach ($targets as $k => $v) {
131
            foreach ($targets as $j => $w) {
132
                if ($k !== $j) {
133
                    $this->checkSingleMatch(false, $v, $w);
134
                }
135
            }
136
        }
137
    }
138
139
    protected function checkSingleMatch(bool $expect, $lhs, $rhs)
140
    {

tests/unit/type/TypeTest.php 1 location

@@ 123-132 (lines=10) @@
120
        ]);
121
    }
122
123
    protected function checkDoesntMatch(array $types)
124
    {
125
        foreach ($types as $k => $v) {
126
            foreach ($types as $j => $w) {
127
                if ($k !== $j) {
128
                    $this->checkSingleMatch(false, $v, $w);
129
                }
130
            }
131
        }
132
    }
133
134
    protected function checkMatches(array $types, bool $self = true)
135
    {