Code Duplication    Length = 8-8 lines in 2 locations

src/EnumSet.php 2 locations

@@ 348-355 (lines=8) @@
345
     * @param EnumSet $other
346
     * @return bool
347
     */
348
    public function isSubset(EnumSet $other)
349
    {
350
        if ($this->enumeration !== $other->enumeration) {
351
            return false;
352
        }
353
354
        return ($this->bitset & $other->bitset) === $this->bitset;
355
    }
356
357
    /**
358
     * Check if this EnumSet is a superset of other
@@ 362-369 (lines=8) @@
359
     * @param EnumSet $other
360
     * @return bool
361
     */
362
    public function isSuperset(EnumSet $other)
363
    {
364
        if ($this->enumeration !== $other->enumeration) {
365
            return false;
366
        }
367
368
        return ($this->bitset | $other->bitset) === $this->bitset;
369
    }
370
371
    /**
372
     * Produce a new set with enumerators from both this and other (this | other)