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 ( 37c37a...1811c0 )
by Simon
04:30
created
src/EventStore/LaravelEventStore.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
     public function load($id)
55 55
     {
56 56
         $rows = $this->db->table($this->eventStoreTableName)
57
-                         ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
58
-                         ->where('uuid', $id)
59
-                         ->orderBy('playhead', 'asc')
60
-                         ->get();
57
+                            ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
58
+                            ->where('uuid', $id)
59
+                            ->orderBy('playhead', 'asc')
60
+                            ->get();
61 61
         $events = [];
62 62
 
63 63
         foreach ($rows as $row) {
@@ -155,12 +155,12 @@  discard block
 block discarded – undo
155 155
     public function getEventsByType($eventTypes, $skip, $take)
156 156
     {
157 157
         $rows = $this->db->table($this->eventStoreTableName)
158
-                         ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
159
-                         ->whereIn('type', $eventTypes)
160
-                         ->skip($skip)
161
-                         ->take($take)
162
-                         ->orderBy('id')
163
-                         ->get();
158
+                            ->select(['uuid', 'playhead', 'metadata', 'payload', 'recorded_on'])
159
+                            ->whereIn('type', $eventTypes)
160
+                            ->skip($skip)
161
+                            ->take($take)
162
+                            ->orderBy('id')
163
+                            ->get();
164 164
         $events = [];
165 165
 
166 166
         foreach ($rows as $row) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function append($id, DomainEventStream $eventStream, bool $ignorePlayhead = false)
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();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         } catch (\PDOException $ex) {
112 112
             if ((string) $ex->getCode() === '23000') {
113 113
                 if ($ignorePlayhead) {
114
-                    $eventRow['playhead'] ++;
114
+                    $eventRow['playhead']++;
115 115
                     return $this->insertEvent($eventRow, true);
116 116
                 }
117 117
                 throw new DuplicateAggregatePlayhead($eventRow['uuid'], $eventRow['playhead']);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     private function domainMessageToArray(DomainMessage $domainMessage): array
178 178
     {
179 179
         return [
180
-            'uuid'        => (string)$domainMessage->getId(),
180
+            'uuid'        => (string) $domainMessage->getId(),
181 181
             'playhead'    => $domainMessage->getPlayHead(),
182 182
             'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
183 183
             'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
Please login to merge, or discard this patch.
src/Console/BuildLaravelEventStore.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
     public function handle()
50 50
     {
51 51
         if ($this->option('force') == 'true' || $this->confirm("Are you sure you want to make a new table '{$this->config->get('cqrses.eventstore_table')}'"
52
-                                                               . " on connection '{$this->config->get('cqrses.eventstore_connection')}'"
53
-                                                               . " Do you wish to continue?")
52
+                                                                . " on connection '{$this->config->get('cqrses.eventstore_connection')}'"
53
+                                                                . " Do you wish to continue?")
54 54
         ) {
55 55
             try {
56 56
                 return $this->buildEventStoreTable();
@@ -67,18 +67,18 @@  discard block
 block discarded – undo
67 67
     protected function buildEventStoreTable()
68 68
     {
69 69
         Schema::connection($this->config->get('cqrses.eventstore_connection'))
70
-              ->create($this->config->get('cqrses.eventstore_table'),
71
-                  function (Blueprint $table) {
72
-                      $table->increments('id');
73
-                      $table->string('uuid', 56);
74
-                      $table->integer('playhead')->unsigned();
75
-                      $table->text('metadata');
76
-                      $table->longText('payload');
77
-                      $table->timestamp('recorded_on')->nullable()->index();
78
-                      $table->string('type', 255)->index();
79
-                      $table->unique(['uuid', 'playhead']);
70
+                ->create($this->config->get('cqrses.eventstore_table'),
71
+                    function (Blueprint $table) {
72
+                        $table->increments('id');
73
+                        $table->string('uuid', 56);
74
+                        $table->integer('playhead')->unsigned();
75
+                        $table->text('metadata');
76
+                        $table->longText('payload');
77
+                        $table->timestamp('recorded_on')->nullable()->index();
78
+                        $table->string('type', 255)->index();
79
+                        $table->unique(['uuid', 'playhead']);
80 80
 
81
-                      $table->index(['id','type']);
82
-                  });
81
+                        $table->index(['id','type']);
82
+                    });
83 83
     }
84 84
 }
85 85
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         Schema::connection($this->config->get('cqrses.eventstore_connection'))
70 70
               ->create($this->config->get('cqrses.eventstore_table'),
71
-                  function (Blueprint $table) {
71
+                  function(Blueprint $table) {
72 72
                       $table->increments('id');
73 73
                       $table->string('uuid', 56);
74 74
                       $table->integer('playhead')->unsigned();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                       $table->string('type', 255)->index();
79 79
                       $table->unique(['uuid', 'playhead']);
80 80
 
81
-                      $table->index(['id','type']);
81
+                      $table->index(['id', 'type']);
82 82
                   });
83 83
     }
84 84
 }
85 85
\ No newline at end of file
Please login to merge, or discard this patch.
src/EventBus/PushEventsThroughQueue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $this->queue->push(
45 45
             QueueToEventDispatcher::class,
46 46
             [
47
-                'uuid'        => (string)$domainMessage->getId(),
47
+                'uuid'        => (string) $domainMessage->getId(),
48 48
                 'playhead'    => $domainMessage->getPlayHead(),
49 49
                 'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
50 50
                 'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
Please login to merge, or discard this patch.