GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 10-10 lines in 2 locations

src/Collection/Collection.php 2 locations

@@ 705-714 (lines=10) @@
702
     *
703
     * @return mixed
704
     */
705
    public function max($callback = null)
706
    {
707
        $callback = $this->valueRetriever($callback);
708
709
        return $this->reduce(function ($result, $item) use ($callback) {
710
            $value = $callback($item);
711
712
            return is_null($result) || $value > $result ? $value : $result;
713
        });
714
    }
715
716
    /**
717
     * Create a collection by using this collection for keys and another for its values.
@@ 747-756 (lines=10) @@
744
     *
745
     * @return mixed
746
     */
747
    public function min($callback = null)
748
    {
749
        $callback = $this->valueRetriever($callback);
750
751
        return $this->reduce(function ($result, $item) use ($callback) {
752
            $value = $callback($item);
753
754
            return is_null($result) || $value < $result ? $value : $result;
755
        });
756
    }
757
758
    /**
759
     * Get the items with the specified keys.