Code Duplication    Length = 11-11 lines in 2 locations

src/ArrayList/ArrayList.php 1 location

@@ 126-136 (lines=11) @@
123
    /**
124
     * {@inheritDoc}
125
     */
126
    public function containsAny($elements) {
127
        $elements = $this->collectionToArray($elements);
128
129
        foreach($elements as $item) {
130
            if($this->contains($item) === TRUE) {
131
                return TRUE;
132
            }
133
        }
134
135
        return FALSE;
136
    }
137
138
    /**
139
     * {@inheritDoc}

src/Set/HashSet.php 1 location

@@ 62-72 (lines=11) @@
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function containsAny($elements) {
63
        $elements = $this->collectionToArray($elements);
64
65
        foreach($elements as $item) {
66
            if($this->contains($item) === TRUE) {
67
                return TRUE;
68
            }
69
        }
70
71
        return FALSE;
72
    }
73
74
    /**
75
     * {@inheritdoc}