Code Duplication    Length = 13-15 lines in 2 locations

src/Queries/ElementQuery.php 1 location

@@ 282-296 (lines=15) @@
279
     *
280
     * @return array
281
     */
282
    protected function normalizeSelect()
283
    {
284
        if ($this->fieldsMustBeSelected()) {
285
            $this->select = array_merge($this->standardFields, $this->select);
286
        }
287
288
        if ($this->propsMustBeSelected() && $this->shouldBeFetchedUsingGetNext()) {
289
            $this->addAllPropsToSelect();
290
        }
291
292
        $this->select[] = 'ID';
293
        $this->select[] = 'IBLOCK_ID';
294
295
        return $this->clearSelectArray();
296
    }
297
298
    /**
299
     * Add all iblock property codes to select.

src/Queries/SectionQuery.php 1 location

@@ 176-188 (lines=13) @@
173
     *
174
     * @return array
175
     */
176
    protected function normalizeSelect()
177
    {
178
        if ($this->fieldsMustBeSelected()) {
179
            $this->select = array_merge($this->standardFields, $this->select);
180
        }
181
182
        if ($this->propsMustBeSelected()) {
183
            $this->select[] = 'IBLOCK_ID';
184
            $this->select[] = 'UF_*';
185
        }
186
187
        return $this->clearSelectArray();
188
    }
189
}
190