Code Duplication    Length = 13-13 lines in 2 locations

src/Client.php 2 locations

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