Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractClient.php 2 locations

@@ 138-140 (lines=3) @@
135
136
    protected function requiredAttributes(array $attributes, array $data)
137
    {
138
        if (!ArrayUtils::contains($data, $attributes)) {
139
            throw new \Exception(sprintf('These attributes are required: %s', implode(',', $attributes)));
140
        }
141
    }
142
143
    protected function requiredOneAttribute(array $attributes, array $data)
@@ 145-147 (lines=3) @@
142
143
    protected function requiredOneAttribute(array $attributes, array $data)
144
    {
145
        if (!ArrayUtils::containsSome($data, $attributes)) {
146
            throw new \Exception(sprintf('These attributes are required: %s', implode(',', $attributes)));
147
        }
148
    }
149
150
    protected function getMessagesTo(array $data)