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

@@ 337-345 (lines=9) @@
334
        return (new Pulse($result['pulse']));
335
    }
336
337
    private function pulseInjection (&$result)
338
    {
339
        $parentBoard = new PulseBoard($this->getBoardId());
340
341
        // Inject some information so a Pulse object can survive on its own
342
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
343
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
344
        $result["pulse"]["raw_column_values"] = $result["column_values"];
345
    }
346
347
    // ================================================================================================================
348
    //   Column data functions