Code Duplication    Length = 10-10 lines in 2 locations

src/Collection/CollectionTrait.php 2 locations

@@ 102-111 (lines=10) @@
99
    /**
100
     * {@inheritDoc}
101
     */
102
    public function every(callable $c)
103
    {
104
        foreach ($this->optimizeUnwrap() as $key => $value) {
105
            if (!$c($value, $key)) {
106
                return false;
107
            }
108
        }
109
110
        return true;
111
    }
112
113
    /**
114
     * {@inheritDoc}
@@ 116-125 (lines=10) @@
113
    /**
114
     * {@inheritDoc}
115
     */
116
    public function some(callable $c)
117
    {
118
        foreach ($this->optimizeUnwrap() as $key => $value) {
119
            if ($c($value, $key) === true) {
120
                return true;
121
            }
122
        }
123
124
        return false;
125
    }
126
127
    /**
128
     * {@inheritDoc}