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

@@ 288-296 (lines=9) @@
285
        return (new Pulse($result['pulse']));
286
    }
287
288
    private function pulseInjection (&$result)
289
    {
290
        $parentBoard = new PulseBoard($this->getBoardId());
291
292
        // Inject some information so a Pulse object can survive on its own
293
        $result["pulse"]["group_id"] = $result["board_meta"]["group_id"];
294
        $result["pulse"]["column_structure"] = $parentBoard->getColumns();
295
        $result["pulse"]["raw_column_values"] = $result["column_values"];
296
    }
297
298
    // ================================================================================================================
299
    //   Column data functions