Code Duplication    Length = 7-8 lines in 2 locations

src/PhpSpreadsheet/Writer/Xls/BIFFwriter.php 2 locations

@@ 187-194 (lines=8) @@
184
    /**
185
     * Writes Excel EOF record to indicate the end of a BIFF stream.
186
     */
187
    protected function storeEof()
188
    {
189
        $record = 0x000A; // Record identifier
190
        $length = 0x0000; // Number of bytes to follow
191
192
        $header = pack('vv', $record, $length);
193
        $this->append($header);
194
    }
195
196
    /**
197
     * Writes Excel EOF record to indicate the end of a BIFF stream.
@@ 199-205 (lines=7) @@
196
    /**
197
     * Writes Excel EOF record to indicate the end of a BIFF stream.
198
     */
199
    public function writeEof()
200
    {
201
        $record = 0x000A; // Record identifier
202
        $length = 0x0000; // Number of bytes to follow
203
        $header = pack('vv', $record, $length);
204
205
        return $this->writeData($header);
206
    }
207
208
    /**