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

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