@@ 111-126 (lines=16) @@ | ||
108 | ]); |
|
109 | } |
|
110 | ||
111 | protected function checkMatches(array $targets, $self = true) |
|
112 | { |
|
113 | $all = $targets; |
|
114 | if ($self) { |
|
115 | foreach ($targets as $target) { |
|
116 | $all[] = $this->copy($target); |
|
117 | } |
|
118 | } |
|
119 | foreach ($all as $k => $v) { |
|
120 | foreach ($all as $j => $w) { |
|
121 | if ($self || $k !== $j) { |
|
122 | $this->checkSingleMatch(true, $v, $w); |
|
123 | } |
|
124 | } |
|
125 | } |
|
126 | } |
|
127 | ||
128 | protected function checkDoesntMatch(array $targets) |
|
129 | { |
@@ 134-149 (lines=16) @@ | ||
131 | } |
|
132 | } |
|
133 | ||
134 | protected function checkMatches(array $types, bool $self = true) |
|
135 | { |
|
136 | $all = $types; |
|
137 | if ($self) { |
|
138 | foreach ($types as $type) { |
|
139 | $all[] = $this->copy($type); |
|
140 | } |
|
141 | } |
|
142 | foreach ($all as $k => $v) { |
|
143 | foreach ($all as $j => $w) { |
|
144 | if ($self || $k !== $j) { |
|
145 | $this->checkSingleMatch(true, $v, $w); |
|
146 | } |
|
147 | } |
|
148 | } |
|
149 | } |
|
150 | ||
151 | protected function checkSingleMatch(bool $expect, $lhs, $rhs) |
|
152 | { |