Code Duplication    Length = 3-3 lines in 2 locations

src/query/Entity.php 2 locations

@@ 162-164 (lines=3) @@
159
        );
160
161
        // Perform sorting if necessary
162
        if (count($this->entityOrderBy) === 2) {
163
            $entityIDs = $this->applySorting($entityIDs, $this->entityOrderBy[0], $this->entityOrderBy[1]);
164
        }
165
166
        // Perform sorting in parent fields if necessary
167
        if (count($this->orderBy) === 2) {
@@ 167-169 (lines=3) @@
164
        }
165
166
        // Perform sorting in parent fields if necessary
167
        if (count($this->orderBy) === 2) {
168
            $entityIDs = $this->applySorting($entityIDs, $this->orderBy[0], $this->orderBy[1]);
169
        }
170
171
        // Perform limits if necessary
172
        if (count($this->limit)) {