Code Duplication    Length = 7-9 lines in 2 locations

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

src/Pulse.php 1 location

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