Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

@@ 276-284 (lines=9) @@
273
        return (new Pulse($result['pulse']));
274
    }
275
276
    private function pulseInjection (&$result)
277
    {
278
        $parentBoard = new PulseBoard($this->getBoardId());
279
280
        // Inject some information so a Pulse object can survive on its own
281
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
282
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
283
        $result["pulse"]["raw_column_values"] = $result["column_values"];
284
    }
285
286
    // ================================================================================================================
287
    //   Column data functions

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