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

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