Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractClient.php 2 locations

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