Code Duplication    Length = 8-8 lines in 5 locations

src/PhpSpreadsheet/Reader/Xls/Escher.php 5 locations

@@ 211-218 (lines=8) @@
208
    /**
209
     * Read Dgg record (Drawing Group)
210
     */
211
    private function readDgg()
212
    {
213
        $length = \PhpOffice\PhpSpreadsheet\Reader\Xls::getInt4d($this->data, $this->pos + 4);
214
        $recordData = substr($this->data, $this->pos + 8, $length);
215
216
        // move stream pointer to next record
217
        $this->pos += 8 + $length;
218
    }
219
220
    /**
221
     * Read BstoreContainer record (Blip Store Container)
@@ 425-432 (lines=8) @@
422
    /**
423
     * Read SplitMenuColors record
424
     */
425
    private function readSplitMenuColors()
426
    {
427
        $length = \PhpOffice\PhpSpreadsheet\Reader\Xls::getInt4d($this->data, $this->pos + 4);
428
        $recordData = substr($this->data, $this->pos + 8, $length);
429
430
        // move stream pointer to next record
431
        $this->pos += 8 + $length;
432
    }
433
434
    /**
435
     * Read DgContainer record (Drawing Container)
@@ 455-462 (lines=8) @@
452
    /**
453
     * Read Dg record (Drawing)
454
     */
455
    private function readDg()
456
    {
457
        $length = \PhpOffice\PhpSpreadsheet\Reader\Xls::getInt4d($this->data, $this->pos + 4);
458
        $recordData = substr($this->data, $this->pos + 8, $length);
459
460
        // move stream pointer to next record
461
        $this->pos += 8 + $length;
462
    }
463
464
    /**
465
     * Read SpgrContainer record (Shape Group Container)
@@ 515-522 (lines=8) @@
512
    /**
513
     * Read Spgr record (Shape Group)
514
     */
515
    private function readSpgr()
516
    {
517
        $length = \PhpOffice\PhpSpreadsheet\Reader\Xls::getInt4d($this->data, $this->pos + 4);
518
        $recordData = substr($this->data, $this->pos + 8, $length);
519
520
        // move stream pointer to next record
521
        $this->pos += 8 + $length;
522
    }
523
524
    /**
525
     * Read Sp record (Shape)
@@ 615-622 (lines=8) @@
612
    /**
613
     * Read ClientData record
614
     */
615
    private function readClientData()
616
    {
617
        $length = \PhpOffice\PhpSpreadsheet\Reader\Xls::getInt4d($this->data, $this->pos + 4);
618
        $recordData = substr($this->data, $this->pos + 8, $length);
619
620
        // move stream pointer to next record
621
        $this->pos += 8 + $length;
622
    }
623
624
    /**
625
     * Read OfficeArtRGFOPTE table of property-value pairs