Code Duplication    Length = 8-8 lines in 2 locations

src/EnumSet.php 2 locations

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