GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 12-15 lines in 3 locations

src/EventBus/PushEventsThroughQueue.php 1 location

@@ 37-48 (lines=12) @@
34
     * @param DomainMessage $domainMessage
35
     * @return void
36
     */
37
    public function handle(DomainMessage $domainMessage)
38
    {
39
        $this->queue->push(QueueToEventDispatcher::class,
40
                           [
41
                               'uuid'        => (string)$domainMessage->getId(),
42
                               'playhead'    => $domainMessage->getPlayHead(),
43
                               'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
44
                               'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
45
                               'recorded_on' => (string)$domainMessage->getRecordedOn(),
46
                               'type'        => $domainMessage->getType(),
47
                           ]);
48
    }
49
}

src/EventStore/LaravelEventStore.php 1 location

@@ 99-112 (lines=14) @@
96
    /**
97
     * @param DomainMessage $domainMessage
98
     */
99
    private function insertEvent(DomainMessage $domainMessage)
100
    {
101
        $this->db->table($this->eventStoreTableName)
102
           ->insert(
103
               [
104
                   'uuid'        => (string)$domainMessage->getId(),
105
                   'playhead'    => $domainMessage->getPlayHead(),
106
                   'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
107
                   'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
108
                   'recorded_on' => (string)$domainMessage->getRecordedOn(),
109
                   'type'        => $domainMessage->getType(),
110
               ]
111
           );
112
    }
113
114
    /**
115
     * @param \stdClass

src/StrongConsistency/PushEventThroughQueueWithCommandId.php 1 location

@@ 44-58 (lines=15) @@
41
     * @param DomainMessage $domainMessage
42
     * @return void
43
     */
44
    public function handle(DomainMessage $domainMessage)
45
    {
46
        $this->queue->push(
47
            QueueToEventDispatcherWithCommandId::class,
48
            [
49
                'uuid'        => (string)$domainMessage->getId(),
50
                'playhead'    => $domainMessage->getPlayHead(),
51
                'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
52
                'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
53
                'recorded_on' => (string)$domainMessage->getRecordedOn(),
54
                'type'        => $domainMessage->getType(),
55
                'command_id'  => $this->notificationsCommandBus->getLastCommandId(),
56
            ]
57
        );
58
    }
59
}
60