Code Duplication    Length = 13-13 lines in 2 locations

src/Client.php 2 locations

@@ 137-149 (lines=13) @@
134
                    $operator = null;
135
                    $value    = null;
136
137
                    switch (\count($item)) {
138
                        case 1:
139
                            list($key) = $item;
140
                            break;
141
                        case 2:
142
                            list($key, $operator) = $item;
143
                            break;
144
                        case 3:
145
                            list($key, $operator, $value) = $item;
146
                            break;
147
                        default:
148
                            throw new ClientException('From 1 to 3 parameters of "where" condition is allowed');
149
                    }
150
                    $query->where($key, $operator, $value);
151
                }
152
            } else {
@@ 158-170 (lines=13) @@
155
                $operator = null;
156
                $value    = null;
157
158
                switch (\count($where)) {
159
                    case 1:
160
                        list($key) = $where;
161
                        break;
162
                    case 2:
163
                        list($key, $operator) = $where;
164
                        break;
165
                    case 3:
166
                        list($key, $operator, $value) = $where;
167
                        break;
168
                    default:
169
                        throw new ClientException('From 1 to 3 parameters of "where" condition is allowed');
170
                }
171
172
                $query->where($key, $operator, $value);
173
            }