Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Writer/Ods.php 1 location

@@ 64-71 (lines=8) @@
61
     *
62
     * @return null|Ods\WriterPart
63
     */
64
    public function getWriterPart($pPartName)
65
    {
66
        if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) {
67
            return $this->writerParts[strtolower($pPartName)];
68
        }
69
70
        return null;
71
    }
72
73
    /**
74
     * Save PhpSpreadsheet to file.

src/PhpSpreadsheet/Writer/Xlsx.php 1 location

@@ 157-164 (lines=8) @@
154
     *
155
     * @return \PhpOffice\PhpSpreadsheet\Writer\Xlsx\WriterPart
156
     */
157
    public function getWriterPart($pPartName)
158
    {
159
        if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) {
160
            return $this->writerParts[strtolower($pPartName)];
161
        }
162
163
        return null;
164
    }
165
166
    /**
167
     * Save PhpSpreadsheet to file.