Code Duplication    Length = 13-15 lines in 2 locations

src/Queries/SectionQuery.php 1 location

@@ 147-159 (lines=13) @@
144
     *
145
     * @return array
146
     */
147
    protected function normalizeSelect()
148
    {
149
        if ($this->fieldsMustBeSelected()) {
150
            $this->select = array_merge($this->standardFields, $this->select);
151
        }
152
153
        if ($this->propsMustBeSelected()) {
154
            $this->select[] = 'IBLOCK_ID';
155
            $this->select[] = 'UF_*';
156
        }
157
158
        return $this->clearSelectArray();
159
    }
160
}
161

src/Queries/ElementQuery.php 1 location

@@ 253-267 (lines=15) @@
250
     *
251
     * @return array
252
     */
253
    protected function normalizeSelect()
254
    {
255
        if ($this->fieldsMustBeSelected()) {
256
            $this->select = array_merge($this->standardFields, $this->select);
257
        }
258
259
        if ($this->propsMustBeSelected() && $this->shouldBeFetchedUsingGetNext()) {
260
            $this->addAllPropsToSelect();
261
        }
262
263
        $this->select[] = 'ID';
264
        $this->select[] = 'IBLOCK_ID';
265
266
        return $this->clearSelectArray();
267
    }
268
269
    /**
270
     * Add all iblock property codes to select.