Code Duplication    Length = 7-9 lines in 2 locations

src/Pulse.php 1 location

@@ 244-252 (lines=9) @@
241
        return (new Pulse($result['pulse']));
242
    }
243
244
    private function pulseInjection (&$result)
245
    {
246
        $parentBoard = new PulseBoard($this->getBoardId());
247
248
        // Inject some information so a Pulse object can survive on its own
249
        $result["pulse"]["group_id"] = $result["board_meta"]["group_id"];
250
        $result["pulse"]["column_structure"] = $parentBoard->getColumns();
251
        $result["pulse"]["raw_column_values"] = $result["column_values"];
252
    }
253
254
    // ================================================================================================================
255
    //   Column data functions

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