Code Duplication    Length = 8-8 lines in 5 locations

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

@@ 218-225 (lines=8) @@
215
    /**
216
     * Read Dgg record (Drawing Group).
217
     */
218
    private function readDgg()
219
    {
220
        $length = Xls::getInt4d($this->data, $this->pos + 4);
221
        $recordData = substr($this->data, $this->pos + 8, $length);
222
223
        // move stream pointer to next record
224
        $this->pos += 8 + $length;
225
    }
226
227
    /**
228
     * Read BstoreContainer record (Blip Store Container).
@@ 432-439 (lines=8) @@
429
    /**
430
     * Read SplitMenuColors record.
431
     */
432
    private function readSplitMenuColors()
433
    {
434
        $length = Xls::getInt4d($this->data, $this->pos + 4);
435
        $recordData = substr($this->data, $this->pos + 8, $length);
436
437
        // move stream pointer to next record
438
        $this->pos += 8 + $length;
439
    }
440
441
    /**
442
     * Read DgContainer record (Drawing Container).
@@ 462-469 (lines=8) @@
459
    /**
460
     * Read Dg record (Drawing).
461
     */
462
    private function readDg()
463
    {
464
        $length = Xls::getInt4d($this->data, $this->pos + 4);
465
        $recordData = substr($this->data, $this->pos + 8, $length);
466
467
        // move stream pointer to next record
468
        $this->pos += 8 + $length;
469
    }
470
471
    /**
472
     * Read SpgrContainer record (Shape Group Container).
@@ 522-529 (lines=8) @@
519
    /**
520
     * Read Spgr record (Shape Group).
521
     */
522
    private function readSpgr()
523
    {
524
        $length = Xls::getInt4d($this->data, $this->pos + 4);
525
        $recordData = substr($this->data, $this->pos + 8, $length);
526
527
        // move stream pointer to next record
528
        $this->pos += 8 + $length;
529
    }
530
531
    /**
532
     * Read Sp record (Shape).
@@ 622-629 (lines=8) @@
619
    /**
620
     * Read ClientData record.
621
     */
622
    private function readClientData()
623
    {
624
        $length = Xls::getInt4d($this->data, $this->pos + 4);
625
        $recordData = substr($this->data, $this->pos + 8, $length);
626
627
        // move stream pointer to next record
628
        $this->pos += 8 + $length;
629
    }
630
631
    /**
632
     * Read OfficeArtRGFOPTE table of property-value pairs.