Code Duplication    Length = 7-9 lines in 2 locations

src/PulseBoard.php 1 location

@@ 372-378 (lines=7) @@
369
        return (new Pulse($result["pulse"]));
370
    }
371
372
    private function pulseInjection (&$result)
373
    {
374
        // Inject some information so a Pulse object can survive on its own
375
        $result["pulse"]["group_id"] = $result["board_meta"]["group_id"];
376
        $result["pulse"]["column_structure"] = $this->getColumns();
377
        $result["pulse"]["raw_column_values"] = $result["column_values"];
378
    }
379
380
    // ================================================================================================================
381
    //   Board functions

src/Pulse.php 1 location

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