Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

@@ 352-360 (lines=9) @@
349
        return (new Pulse($result['pulse']));
350
    }
351
352
    private function pulseInjection (&$result)
353
    {
354
        $parentBoard = new PulseBoard($this->getBoardId());
355
356
        // Inject some information so a Pulse object can survive on its own
357
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
358
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
359
        $result["pulse"]["raw_column_values"] = $result["column_values"];
360
    }
361
362
    // ================================================================================================================
363
    //   Column data functions

src/PulseBoard.php 1 location

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