Code Duplication    Length = 7-9 lines in 2 locations

src/PulseBoard.php 1 location

@@ 383-389 (lines=7) @@
380
        return (new Pulse($result["pulse"]));
381
    }
382
383
    private function pulseInjection (&$result)
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"]  = $this->getColumns();
388
        $result["pulse"]["raw_column_values"] = $result["column_values"];
389
    }
390
391
    // =================================================================================================================
392
    //   Board functions

src/Pulse.php 1 location

@@ 312-320 (lines=9) @@
309
        return (new Pulse($result['pulse']));
310
    }
311
312
    private function pulseInjection (&$result)
313
    {
314
        $parentBoard = new PulseBoard($this->getBoardId());
315
316
        // Inject some information so a Pulse object can survive on its own
317
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
318
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
319
        $result["pulse"]["raw_column_values"] = $result["column_values"];
320
    }
321
322
    // ================================================================================================================
323
    //   Column data functions