Code Duplication    Length = 10-10 lines in 6 locations

src/eXpansion/Bundle/LocalRecords/Model/Base/RecordQuery.php 2 locations

@@ 348-357 (lines=10) @@
345
     *
346
     * @return $this|ChildRecordQuery The current query, for fluid interface
347
     */
348
    public function filterByMapuid($mapuid = null, $comparison = null)
349
    {
350
        if (null === $comparison) {
351
            if (is_array($mapuid)) {
352
                $comparison = Criteria::IN;
353
            }
354
        }
355
356
        return $this->addUsingAlias(RecordTableMap::COL_MAPUID, $mapuid, $comparison);
357
    }
358
359
    /**
360
     * Filter the query on the nbLaps column
@@ 537-546 (lines=10) @@
534
     *
535
     * @return $this|ChildRecordQuery The current query, for fluid interface
536
     */
537
    public function filterByCheckpoints($checkpoints = null, $comparison = null)
538
    {
539
        if (null === $comparison) {
540
            if (is_array($checkpoints)) {
541
                $comparison = Criteria::IN;
542
            }
543
        }
544
545
        return $this->addUsingAlias(RecordTableMap::COL_CHECKPOINTS, $checkpoints, $comparison);
546
    }
547
548
    /**
549
     * Filter the query on the player_id column

src/eXpansion/Framework/PlayersBundle/Model/Base/PlayerQuery.php 4 locations

@@ 338-347 (lines=10) @@
335
     *
336
     * @return $this|ChildPlayerQuery The current query, for fluid interface
337
     */
338
    public function filterByLogin($login = null, $comparison = null)
339
    {
340
        if (null === $comparison) {
341
            if (is_array($login)) {
342
                $comparison = Criteria::IN;
343
            }
344
        }
345
346
        return $this->addUsingAlias(PlayerTableMap::COL_LOGIN, $login, $comparison);
347
    }
348
349
    /**
350
     * Filter the query on the nickname column
@@ 363-372 (lines=10) @@
360
     *
361
     * @return $this|ChildPlayerQuery The current query, for fluid interface
362
     */
363
    public function filterByNickname($nickname = null, $comparison = null)
364
    {
365
        if (null === $comparison) {
366
            if (is_array($nickname)) {
367
                $comparison = Criteria::IN;
368
            }
369
        }
370
371
        return $this->addUsingAlias(PlayerTableMap::COL_NICKNAME, $nickname, $comparison);
372
    }
373
374
    /**
375
     * Filter the query on the nickname_stripped column
@@ 388-397 (lines=10) @@
385
     *
386
     * @return $this|ChildPlayerQuery The current query, for fluid interface
387
     */
388
    public function filterByNicknameStripped($nicknameStripped = null, $comparison = null)
389
    {
390
        if (null === $comparison) {
391
            if (is_array($nicknameStripped)) {
392
                $comparison = Criteria::IN;
393
            }
394
        }
395
396
        return $this->addUsingAlias(PlayerTableMap::COL_NICKNAME_STRIPPED, $nicknameStripped, $comparison);
397
    }
398
399
    /**
400
     * Filter the query on the path column
@@ 413-422 (lines=10) @@
410
     *
411
     * @return $this|ChildPlayerQuery The current query, for fluid interface
412
     */
413
    public function filterByPath($path = null, $comparison = null)
414
    {
415
        if (null === $comparison) {
416
            if (is_array($path)) {
417
                $comparison = Criteria::IN;
418
            }
419
        }
420
421
        return $this->addUsingAlias(PlayerTableMap::COL_PATH, $path, $comparison);
422
    }
423
424
    /**
425
     * Filter the query on the wins column