Code Duplication    Length = 13-13 lines in 3 locations

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

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

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

@@ 214-226 (lines=13) @@
211
     *
212
     * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter
213
     */
214
    public function findPks($keys, ConnectionInterface $con = null)
215
    {
216
        if (null === $con) {
217
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
218
        }
219
        $this->basePreSelect($con);
220
        $criteria = $this->isKeepQuery() ? clone $this : $this;
221
        $dataFetcher = $criteria
222
            ->filterByPrimaryKeys($keys)
223
            ->doSelect($con);
224
225
        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
226
    }
227
228
    /**
229
     * Filter the query by primary key

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