Code Duplication    Length = 8-8 lines in 2 locations

src/Support/Collection.php 2 locations

@@ 585-592 (lines=8) @@
582
     * @param  bool  $strict
583
     * @return static
584
     */
585
    public function whereIn($key, $values, $strict = false)
586
    {
587
        $values = $this->getArrayableItems($values);
588
589
        return $this->filter(function ($item) use ($key, $values, $strict) {
590
            return in_array(data_get($item, $key), $values, $strict);
591
        });
592
    }
593
594
    /**
595
     * Filter items by the given key value pair using strict comparison.
@@ 614-621 (lines=8) @@
611
     * @param  bool  $strict
612
     * @return static
613
     */
614
    public function whereNotIn($key, $values, $strict = false)
615
    {
616
        $values = $this->getArrayableItems($values);
617
618
        return $this->reject(function ($item) use ($key, $values, $strict) {
619
            return in_array(data_get($item, $key), $values, $strict);
620
        });
621
    }
622
623
    /**
624
     * Filter items by the given key value pair using strict comparison.