Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

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

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