Code Duplication    Length = 7-9 lines in 2 locations

src/PulseBoard.php 1 location

@@ 409-415 (lines=7) @@
406
        return (new Pulse($result["pulse"]));
407
    }
408
409
    private function pulseInjection (&$result)
410
    {
411
        // Inject some information so a Pulse object can survive on its own
412
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
413
        $result["pulse"]["column_structure"]  = $this->getColumns();
414
        $result["pulse"]["raw_column_values"] = $result["column_values"];
415
    }
416
417
    // =================================================================================================================
418
    //   Board functions

src/Pulse.php 1 location

@@ 381-389 (lines=9) @@
378
        return (new Pulse($result['pulse']));
379
    }
380
381
    private function pulseInjection (&$result)
382
    {
383
        $parentBoard = new PulseBoard($this->getBoardId());
384
385
        // Inject some information so a Pulse object can survive on its own
386
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
387
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
388
        $result["pulse"]["raw_column_values"] = $result["column_values"];
389
    }
390
391
    // ================================================================================================================
392
    //   Column data functions