Code Duplication    Length = 8-8 lines in 2 locations

src/Expectations.php 2 locations

@@ 398-405 (lines=8) @@
395
    /**
396
     * @return Expectations
397
     */
398
    public function isEven(): self
399
    {
400
        if ($this->isNumeric()->isApproved()) {
401
            return $this->approveIf(($this->value & 1) === 0);
402
        }
403
404
        return $this->reject();
405
    }
406
407
    /**
408
     * @return Expectations
@@ 410-417 (lines=8) @@
407
    /**
408
     * @return Expectations
409
     */
410
    public function isOdd(): self
411
    {
412
        if ($this->isNumeric()->isApproved()) {
413
            return $this->approveIf(($this->value & 1) === 1);
414
        }
415
416
        return $this->reject();
417
    }
418
419
    /**
420
     * @param string $pattern