Code Duplication    Length = 7-9 lines in 2 locations

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

src/PulseBoard.php 1 location

@@ 452-458 (lines=7) @@
449
        return (new Pulse($result["pulse"]));
450
    }
451
452
    private function pulseInjection (&$result)
453
    {
454
        // Inject some information so a Pulse object can survive on its own
455
        $result["pulse"]["group_id"] = $result["board_meta"]["group_id"];
456
        $result["pulse"]["column_structure"] = $this->getColumns();
457
        $result["pulse"]["raw_column_values"] = $result["column_values"];
458
    }
459
460
    // =================================================================================================================
461
    //   Board functions