Code Duplication    Length = 8-8 lines in 2 locations

src/Support/Traits/EnumeratesValues.php 2 locations

@@ 515-522 (lines=8) @@
512
     * @param  bool  $strict
513
     * @return static
514
     */
515
    public function whereIn($key, $values, $strict = false)
516
    {
517
        $values = $this->getArrayableItems($values);
518
519
        return $this->filter(function ($item) use ($key, $values, $strict) {
520
            return in_array(data_get($item, $key), $values, $strict);
521
        });
522
    }
523
524
    /**
525
     * Filter items by the given key value pair using strict comparison.
@@ 570-577 (lines=8) @@
567
     * @param  bool  $strict
568
     * @return static
569
     */
570
    public function whereNotIn($key, $values, $strict = false)
571
    {
572
        $values = $this->getArrayableItems($values);
573
574
        return $this->reject(function ($item) use ($key, $values, $strict) {
575
            return in_array(data_get($item, $key), $values, $strict);
576
        });
577
    }
578
579
    /**
580
     * Filter items by the given key value pair using strict comparison.