Code Duplication    Length = 17-20 lines in 2 locations

src/Xlsx/Spreadsheet.php 1 location

@@ 100-116 (lines=17) @@
97
     * @param ValueTransformerFactory $valueTransformerFactory
98
     * @param RowIteratorFactory      $rowIteratorFactory
99
     */
100
    public function __construct(
101
        Archive $archive,
102
        RelationshipsLoader $relationshipsLoader,
103
        SharedStringsLoader $sharedStringsLoader,
104
        StylesLoader $stylesLoader,
105
        WorksheetListReader $worksheetListReader,
106
        ValueTransformerFactory $valueTransformerFactory,
107
        RowIteratorFactory $rowIteratorFactory
108
    ) {
109
        $this->archive = $archive;
110
        $this->relationshipsLoader = $relationshipsLoader;
111
        $this->sharedStringsLoader = $sharedStringsLoader;
112
        $this->stylesLoader = $stylesLoader;
113
        $this->worksheetListReader = $worksheetListReader;
114
        $this->valueTransformerFactory = $valueTransformerFactory;
115
        $this->rowIteratorFactory = $rowIteratorFactory;
116
    }
117
118
    /**
119
     * {@inheritdoc}

src/Xlsx/SpreadsheetLoader.php 1 location

@@ 68-87 (lines=20) @@
65
     * @param RowIteratorFactory      $rowIteratorFactory
66
     * @param string                  $spreadsheetClass
67
     */
68
    public function __construct(
69
        ArchiveLoader $archiveLoader,
70
        RelationshipsLoader $relationshipsLoader,
71
        SharedStringsLoader $sharedStringsLoader,
72
        StylesLoader $stylesLoader,
73
        WorksheetListReader $worksheetListReader,
74
        ValueTransformerFactory $valueTransformerFactory,
75
        RowIteratorFactory $rowIteratorFactory,
76
        $spreadsheetClass
77
    ) {
78
        $this->relationshipsLoader = $relationshipsLoader;
79
        $this->sharedStringsLoader = $sharedStringsLoader;
80
        $this->stylesLoader = $stylesLoader;
81
        $this->worksheetListReader = $worksheetListReader;
82
        $this->valueTransformerFactory = $valueTransformerFactory;
83
        $this->rowIteratorFactory = $rowIteratorFactory;
84
        $this->archiveLoader = $archiveLoader;
85
        $this->spreadsheetClass = $spreadsheetClass;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */