Code Duplication    Length = 8-8 lines in 2 locations

src/EnumSet.php 2 locations

@@ 318-325 (lines=8) @@
315
     * @param EnumSet $other
316
     * @return bool
317
     */
318
    public function isSubset(EnumSet $other)
319
    {
320
        if ($this->enumeration !== $other->enumeration) {
321
            return false;
322
        }
323
324
        return ($this->bitset & $other->bitset) === $this->bitset;
325
    }
326
327
    /**
328
     * Check if this EnumSet is a superset of other
@@ 332-339 (lines=8) @@
329
     * @param EnumSet $other
330
     * @return bool
331
     */
332
    public function isSuperset(EnumSet $other)
333
    {
334
        if ($this->enumeration !== $other->enumeration) {
335
            return false;
336
        }
337
338
        return ($this->bitset | $other->bitset) === $this->bitset;
339
    }
340
341
    /**
342
     * Produce a new set with enumerators from both this and other (this | other)