Code Duplication    Length = 10-10 lines in 2 locations

src/eXpansion/Bundle/LocalRecords/Model/Base/RecordQuery.php 1 location

@@ 232-241 (lines=10) @@
229
     *
230
     * @return ChildRecord|array|mixed the result, formatted by the current formatter
231
     */
232
    protected function findPkComplex($key, ConnectionInterface $con)
233
    {
234
        // As the query uses a PK condition, no limit(1) is necessary.
235
        $criteria = $this->isKeepQuery() ? clone $this : $this;
236
        $dataFetcher = $criteria
237
            ->filterByPrimaryKey($key)
238
            ->doSelect($con);
239
240
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
241
    }
242
243
    /**
244
     * Find objects by primary key

src/eXpansion/Framework/PlayersBundle/Model/Base/PlayerQuery.php 1 location

@@ 222-231 (lines=10) @@
219
     *
220
     * @return ChildPlayer|array|mixed the result, formatted by the current formatter
221
     */
222
    protected function findPkComplex($key, ConnectionInterface $con)
223
    {
224
        // As the query uses a PK condition, no limit(1) is necessary.
225
        $criteria = $this->isKeepQuery() ? clone $this : $this;
226
        $dataFetcher = $criteria
227
            ->filterByPrimaryKey($key)
228
            ->doSelect($con);
229
230
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
231
    }
232
233
    /**
234
     * Find objects by primary key