Code Duplication    Length = 8-8 lines in 2 locations

src/EnumSet.php 2 locations

@@ 213-220 (lines=8) @@
210
     * @param EnumSet $other
211
     * @return bool
212
     */
213
    public function isSubset(EnumSet $other)
214
    {
215
        if ($this->enumeration !== $other->enumeration) {
216
            return false;
217
        }
218
219
        return ($this->bitset & $other->bitset) === $this->bitset;
220
    }
221
222
    /**
223
     * Check if this EnumSet is a superset of other
@@ 227-234 (lines=8) @@
224
     * @param EnumSet $other
225
     * @return bool
226
     */
227
    public function isSuperset(EnumSet $other)
228
    {
229
        if ($this->enumeration !== $other->enumeration) {
230
            return false;
231
        }
232
233
        return ($this->bitset | $other->bitset) === $this->bitset;
234
    }
235
236
    /**
237
     * Produce a new set with enumerators from both this and other (this | other)