Code Duplication    Length = 13-13 lines in 3 locations

packages/selfprice/src/Models/Selfprice/Base/SelfpriceQuery.php 1 location

@@ 199-211 (lines=13) @@
196
     *
197
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
198
     */
199
    public function findPks($keys, ConnectionInterface $con = null)
200
    {
201
        if (null === $con) {
202
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
203
        }
204
        $this->basePreSelect($con);
205
        $criteria = $this->isKeepQuery() ? clone $this : $this;
206
        $dataFetcher = $criteria
207
            ->filterByPrimaryKeys($keys)
208
            ->doSelect($con);
209
210
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
211
    }
212
213
    /**
214
     * Filter the query by primary key

packages/core/src/Models/Task/Base/TaskQuery.php 1 location

@@ 204-216 (lines=13) @@
201
     *
202
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
203
     */
204
    public function findPks($keys, ConnectionInterface $con = null)
205
    {
206
        if (null === $con) {
207
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
208
        }
209
        $this->basePreSelect($con);
210
        $criteria = $this->isKeepQuery() ? clone $this : $this;
211
        $dataFetcher = $criteria
212
            ->filterByPrimaryKeys($keys)
213
            ->doSelect($con);
214
215
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
216
    }
217
218
    /**
219
     * Filter the query by primary key

packages/core/src/Models/User/Base/UserQuery.php 1 location

@@ 224-236 (lines=13) @@
221
     *
222
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
223
     */
224
    public function findPks($keys, ConnectionInterface $con = null)
225
    {
226
        if (null === $con) {
227
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
228
        }
229
        $this->basePreSelect($con);
230
        $criteria = $this->isKeepQuery() ? clone $this : $this;
231
        $dataFetcher = $criteria
232
            ->filterByPrimaryKeys($keys)
233
            ->doSelect($con);
234
235
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
236
    }
237
238
    /**
239
     * Filter the query by primary key