Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

@@ 320-328 (lines=9) @@
317
        return (new Pulse($result['pulse']));
318
    }
319
320
    private function pulseInjection (&$result)
321
    {
322
        $parentBoard = new PulseBoard($this->getBoardId());
323
324
        // Inject some information so a Pulse object can survive on its own
325
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
326
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
327
        $result["pulse"]["raw_column_values"] = $result["column_values"];
328
    }
329
330
    // ================================================================================================================
331
    //   Column data functions

src/PulseBoard.php 1 location

@@ 426-432 (lines=7) @@
423
        return (new Pulse($result["pulse"]));
424
    }
425
426
    private function pulseInjection (&$result)
427
    {
428
        // Inject some information so a Pulse object can survive on its own
429
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
430
        $result["pulse"]["column_structure"]  = $this->getColumns();
431
        $result["pulse"]["raw_column_values"] = $result["column_values"];
432
    }
433
434
    // =================================================================================================================
435
    //   Board functions