Code Duplication    Length = 11-13 lines in 2 locations

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

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

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

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