Code Duplication    Length = 11-13 lines in 2 locations

src/eXpansion/Bundle/LocalRecords/Services/RecordHandler.php 1 location

@@ 79-89 (lines=11) @@
76
     * @param int $nbRecords
77
     * @param string $ordering
78
     */
79
    public function __construct(
80
        RecordQueryBuilder $recordQueryBuilder,
81
        PlayerDb $playerDb,
82
        $nbRecords,
83
        $ordering = self::ORDER_ASC
84
    ) {
85
        $this->recordQueryBuilder = $recordQueryBuilder;
86
        $this->nbRecords = $nbRecords;
87
        $this->ordering = $ordering;
88
        $this->playerDb = $playerDb;
89
    }
90
91
    /**
92
     * @return Record[]

src/eXpansion/Bundle/LocalRecords/Services/RecordHandlerFactory.php 1 location

@@ 40-52 (lines=13) @@
37
     * @param int              $nbRecords
38
     * @param string           $className
39
     */
40
    public function __construct(
41
        RecordQueryBuilder $recordQueryBuilder,
42
        PlayerDb $playerDb,
43
        $ordering,
44
        $nbRecords,
45
        $className = RecordHandler::class
46
    ) {
47
        $this->recordQueryBuilder = $recordQueryBuilder;
48
        $this->playerDb = $playerDb;
49
        $this->ordering = $ordering;
50
        $this->nbRecords = $nbRecords;
51
        $this->className = $className;
52
    }
53
54
55
    public function create()