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

@@ 429-435 (lines=7) @@
426
        return (new Pulse($result["pulse"]));
427
    }
428
429
    private function pulseInjection (&$result)
430
    {
431
        // Inject some information so a Pulse object can survive on its own
432
        $result["pulse"]["group_id"] = $result["board_meta"]["group_id"];
433
        $result["pulse"]["column_structure"] = $this->getColumns();
434
        $result["pulse"]["raw_column_values"] = $result["column_values"];
435
    }
436
437
    // ================================================================================================================
438
    //   Board functions