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

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