Code Duplication    Length = 13-15 lines in 2 locations

src/Set.php 2 locations

@@ 82-96 (lines=15) @@
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function containsAll($elements) {
83
        $elements = $this->checkAndConvertInputCollection($elements);
84
85
        $result = TRUE;
86
87
        foreach($elements as $item) {
88
            if($this->contains($item) === FALSE) {
89
                $result = FALSE;
90
91
                break;
92
            }
93
        }
94
95
        return $result;
96
    }
97
98
    /**
99
     * {@inheritdoc}
@@ 151-163 (lines=13) @@
148
    /**
149
     * {@inheritdoc}
150
     */
151
    public function removeAll($elements) {
152
        $elements = $this->checkAndConvertInputCollection($elements);
153
154
        $result = FALSE;
155
156
        foreach($elements as $item) {
157
            if($this->remove($item) === TRUE) {
158
                $result = TRUE;
159
            }
160
        }
161
162
        return $result;
163
    }
164
165
    /**
166
     * {@inheritdoc}