Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractClient.php 2 locations

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