Code Duplication    Length = 11-11 lines in 2 locations

src/ArrayList/ArrayList.php 1 location

@@ 120-130 (lines=11) @@
117
    /**
118
     * {@inheritDoc}
119
     */
120
    public function containsAny($elements) {
121
        $elements = $this->collectionToArray($elements);
122
123
        foreach($elements as $item) {
124
            if($this->contains($item) === TRUE) {
125
                return TRUE;
126
            }
127
        }
128
129
        return FALSE;
130
    }
131
132
    /**
133
     * {@inheritDoc}

src/Set/Set.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}