Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Chart/DataSeries.php 2 locations

@@ 146-148 (lines=3) @@
143
        $this->plotOrder = $plotOrder;
144
        $keys = array_keys($plotValues);
145
        $this->plotValues = $plotValues;
146
        if ((count($plotLabel) == 0) || (is_null($plotLabel[$keys[0]]))) {
147
            $plotLabel[$keys[0]] = new DataSeriesValues();
148
        }
149
150
        $this->plotLabel = $plotLabel;
151
        if ((count($plotCategory) == 0) || (is_null($plotCategory[$keys[0]]))) {
@@ 151-153 (lines=3) @@
148
        }
149
150
        $this->plotLabel = $plotLabel;
151
        if ((count($plotCategory) == 0) || (is_null($plotCategory[$keys[0]]))) {
152
            $plotCategory[$keys[0]] = new DataSeriesValues();
153
        }
154
        $this->plotCategory = $plotCategory;
155
        $this->smoothLine = $smoothLine;
156
        $this->plotStyle = $plotStyle;