Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

@@ 352-360 (lines=9) @@
349
        return (new Pulse($result['pulse']));
350
    }
351
352
    private function pulseInjection (&$result)
353
    {
354
        $parentBoard = new PulseBoard($this->getBoardId());
355
356
        // Inject some information so a Pulse object can survive on its own
357
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
358
        $result["pulse"]["column_structure"]  = $parentBoard->getColumns();
359
        $result["pulse"]["raw_column_values"] = $result["column_values"];
360
    }
361
362
    // ================================================================================================================
363
    //   Column data functions

src/PulseBoard.php 1 location

@@ 439-445 (lines=7) @@
436
        return (new Pulse($result["pulse"]));
437
    }
438
439
    private function pulseInjection (&$result)
440
    {
441
        // Inject some information so a Pulse object can survive on its own
442
        $result["pulse"]["group_id"]          = $result["board_meta"]["group_id"];
443
        $result["pulse"]["column_structure"]  = $this->getColumns();
444
        $result["pulse"]["raw_column_values"] = $result["column_values"];
445
    }
446
447
    // =================================================================================================================
448
    //   Board functions