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.
Completed
Push — master ( 1811c0...f97525 )
by Simon
06:19
created
src/EventStore/LaravelEventStore.php 4 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Illuminate\Database\QueryException;
7 7
 use SmoothPhp\Contracts\Domain\DomainEventStream;
8 8
 use SmoothPhp\Contracts\Domain\DomainMessage;
9
-use SmoothPhp\Contracts\EventStore\DomainEventStreamInterface;
10 9
 use SmoothPhp\Contracts\EventStore\EventStore;
11 10
 use SmoothPhp\Contracts\Serialization\Serializer;
12 11
 use SmoothPhp\Domain\DateTime;
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,6 @@
 block discarded – undo
101 101
 
102 102
     /**
103 103
      * @param array $eventRow
104
-     * @param bool $ignorePlayhead
105 104
      * @throws DuplicateAggregatePlayhead
106 105
      * @throws \PDOException
107 106
      */
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
     public function load($id) : DomainEventStream
56 56
     {
57 57
         $rows = $this->db->table($this->eventStoreTableName)
58
-                         ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
59
-                         ->where('uuid', $id)
60
-                         ->orderBy('playhead', 'asc')
61
-                         ->get();
58
+                            ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
59
+                            ->where('uuid', $id)
60
+                            ->orderBy('playhead', 'asc')
61
+                            ->get();
62 62
         $events = [];
63 63
 
64 64
         foreach ($rows as $row) {
@@ -153,12 +153,12 @@  discard block
 block discarded – undo
153 153
         $lastId = 0;
154 154
         do {
155 155
             $rows = $this->db->table($this->eventStoreTableName)
156
-                             ->select(['id', 'uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
157
-                             ->whereIn('type', $eventTypes)
158
-                             ->where('id', '>', $lastId)
159
-                             ->take($take)
160
-                             ->orderBy('id')
161
-                             ->get();
156
+                                ->select(['id', 'uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
157
+                                ->whereIn('type', $eventTypes)
158
+                                ->where('id', '>', $lastId)
159
+                                ->take($take)
160
+                                ->orderBy('id')
161
+                                ->get();
162 162
             $events = [];
163 163
             foreach ($rows as $row) {
164 164
                 $events[] = $this->deserializeEvent($row);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace SmoothPhp\LaravelAdapter\EventStore;
4 4
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function append($id, DomainEventStream $eventStream) : void
83 83
     {
84
-        $id = (string)$id; //Used to thrown errors if ID will not cast to string
84
+        $id = (string) $id; //Used to thrown errors if ID will not cast to string
85 85
 
86 86
         $this->db->reconnect();
87 87
         $this->db->beginTransaction();
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         try {
111 111
             $this->db->table($this->eventStoreTableName)->insert($eventRow);
112 112
         } catch (\PDOException $ex) {
113
-            if ((string)$ex->getCode() === '23000') {
113
+            if ((string) $ex->getCode() === '23000') {
114 114
                 throw new DuplicateAggregatePlayhead($eventRow['uuid'], $eventRow['playhead'], $ex);
115 115
             }
116 116
             throw $ex;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     private function domainMessageToArray(DomainMessage $domainMessage) : array
177 177
     {
178 178
         return [
179
-            'uuid'        => (string)$domainMessage->getId(),
179
+            'uuid'        => (string) $domainMessage->getId(),
180 180
             'playhead'    => $domainMessage->getPlayHead(),
181 181
             'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
182 182
             'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
Please login to merge, or discard this patch.
src/StrongConsistency/PushEventThroughQueueWithCommandId.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * PushEventsThroughQueue constructor.
31 31
      * @param Queue $queue
32 32
      * @param Serializer $serializer
33
-     * @param StrongConsistencyCommandBusMiddleware|CommandBus $notificationsCommandBus
33
+     * @param StrongConsistencyCommandBusMiddleware $notificationsCommandBus
34 34
      * @param Repository $config
35 35
      */
36 36
     public function __construct(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace SmoothPhp\LaravelAdapter\StrongConsistency;
4 4
 
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
         $this->queue->push(
56 56
             QueueToEventDispatcherWithCommandId::class,
57 57
             [
58
-                'uuid'        => (string)$domainMessage->getId(),
58
+                'uuid'        => (string) $domainMessage->getId(),
59 59
                 'playhead'    => $domainMessage->getPlayHead(),
60 60
                 'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
61 61
                 'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
62
-                'recorded_on' => (string)$domainMessage->getRecordedOn(),
62
+                'recorded_on' => (string) $domainMessage->getRecordedOn(),
63 63
                 'type'        => $domainMessage->getType(),
64 64
                 'command_id'  => $this->notificationsCommandBus->getLastCommandId(),
65 65
             ],
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
         $limit = time() + $timeout;
19 19
         foreach ($commands as $command) {
20
-            while (!Cache::has((string)$command)) {
20
+            while (!Cache::has((string) $command)) {
21 21
                 usleep(1000);
22 22
 
23 23
                 if (time() > $limit) {
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
      */
35 35
     function uuid()
36 36
     {
37
-        return (string)\Ramsey\Uuid\Uuid::uuid4();
37
+        return (string) \Ramsey\Uuid\Uuid::uuid4();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
tests/EventDispatcher/Helpers/TestHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types=1);
1
+<?php declare (strict_types = 1);
2 2
 
3 3
 namespace Tests\EventDispatcher\Helpers;
4 4
 
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getSubscribedEvents()
30 30
     {
31
-        return [TestEvent::class => ['whenTestEvent'],];
31
+        return [TestEvent::class => ['whenTestEvent'], ];
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
tests/EventDispatcher/Helpers/TestEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types=1);
1
+<?php declare (strict_types = 1);
2 2
 
3 3
 namespace Tests\EventDispatcher\Helpers;
4 4
 
Please login to merge, or discard this patch.
tests/EventDispatcher/PushEventThoughDispatcherQueueTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function test_pushing_event_to_queue()
26 26
     {
27 27
         $container = new Container();
28
-       // $container->bind(\Illuminate\Contracts\Container\Container::class, $container);
28
+        // $container->bind(\Illuminate\Contracts\Container\Container::class, $container);
29 29
         $queue = new Queue($container);
30 30
 
31 31
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types=1);
1
+<?php declare (strict_types = 1);
2 2
 
3 3
 namespace Tests\EventDispatcher;
4 4
 
Please login to merge, or discard this patch.
src/CommandBus/LaravelCommandBus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace SmoothPhp\LaravelAdapter\CommandBus;
4 4
 
Please login to merge, or discard this patch.
src/CommandBus/LaravelCommandBusHandlerResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace SmoothPhp\LaravelAdapter\CommandBus;
4 4
 
Please login to merge, or discard this patch.
src/QueuedEventDispatcher/QueuedEventHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace SmoothPhp\LaravelAdapter\QueuedEventDispatcher;
Please login to merge, or discard this patch.