Code Duplication    Length = 13-13 lines in 2 locations

src/Client.php 2 locations

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