Code Duplication    Length = 10-11 lines in 2 locations

src/Queries/UserQuery.php 1 location

@@ 205-214 (lines=10) @@
202
     *
203
     * @return array
204
     */
205
    protected function normalizeSelect()
206
    {
207
        if ($this->fieldsMustBeSelected()) {
208
            $this->select = array_merge($this->standardFields, $this->select);
209
        }
210
211
        $this->select[] = 'ID';
212
213
        return $this->clearSelectArray();
214
    }
215
216
    /**
217
     * Normalize select UF before sending it to getList.

src/Queries/ElementQuery.php 1 location

@@ 292-302 (lines=11) @@
289
     *
290
     * @return array
291
     */
292
    protected function normalizeSelect()
293
    {
294
        if ($this->fieldsMustBeSelected()) {
295
            $this->select = array_merge($this->standardFields, $this->select);
296
        }
297
298
        $this->select[] = 'ID';
299
        $this->select[] = 'IBLOCK_ID';
300
301
        return $this->clearSelectArray();
302
    }
303
304
    /**
305
     * Fetch all iblock property codes from database