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 ( 93b463...37c37a )
by Simon
09:04
created
src/EventBus/QueueToEventDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function fire($job, $data)
37 37
     {
38
-        $payload = (json_decode($data['payload'],true));
38
+        $payload = (json_decode($data['payload'], true));
39 39
 
40 40
         $event = call_user_func([
41 41
                                     str_replace('.', '\\', $data['type']),
Please login to merge, or discard this patch.
src/EventBus/EventBusLogger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
      */
30 30
     public function handle(DomainMessage $domainMessage)
31 31
     {
32
-        $name = explode('.',$domainMessage->getType());
32
+        $name = explode('.', $domainMessage->getType());
33 33
 
34 34
         $name = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', end($name));
35
-        $this->log->debug(trim(ucwords($name)) . " ({$domainMessage->getType()})");
35
+        $this->log->debug(trim(ucwords($name))." ({$domainMessage->getType()})");
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
src/Console/EventStoreBranchSwap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected function getGitBranch()
69 69
     {
70 70
         $shellOutput = [];
71
-        exec('git branch | ' . "grep ' * '", $shellOutput);
71
+        exec('git branch | '."grep ' * '", $shellOutput);
72 72
         foreach ($shellOutput as $line) {
73 73
             if (strpos($line, '* ') !== false) {
74 74
                 return trim(strtolower(str_replace(['* ', '/'], ['', '-'], $line)));
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
      */
84 84
     protected function replaceEnvConfig($branch)
85 85
     {
86
-        $envFilePath = base_path() . '/.env';
86
+        $envFilePath = base_path().'/.env';
87 87
 
88
-        $rebuildFunction = function ($data) use ($branch) {
88
+        $rebuildFunction = function($data) use ($branch) {
89 89
             if (stristr($data, 'DB_TABLE_EVENTSTORE')) {
90 90
                 return "DB_TABLE_EVENTSTORE={$branch}\n";
91 91
             }
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
             return $data;
94 94
         };
95 95
 
96
-        $contentArray = array_map($rebuildFunction,file($envFilePath));
96
+        $contentArray = array_map($rebuildFunction, file($envFilePath));
97 97
 
98
-        file_put_contents($envFilePath, implode('',$contentArray));
98
+        file_put_contents($envFilePath, implode('', $contentArray));
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function register()
39 39
     {
40 40
 
41
-        $configPath = __DIR__ . '/../config/cqrses.php';
41
+        $configPath = __DIR__.'/../config/cqrses.php';
42 42
         $this->mergeConfigFrom($configPath, 'cqrses');
43 43
 
44 44
         $app = $this->app;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function boot()
68 68
     {
69
-        $configPath = __DIR__ . '/../config/cqrses.php';
69
+        $configPath = __DIR__.'/../config/cqrses.php';
70 70
         $this->publishes([$configPath => $this->getConfigPath()], 'config');
71 71
 
72 72
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
             $this->app->singleton(
114 114
                 CommandBus::class,
115
-                function () use ($middlewareChain) {
115
+                function() use ($middlewareChain) {
116 116
                     return new \SmoothPhp\CommandBus\CommandBus($middlewareChain);
117 117
                 }
118 118
             );
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         if ($app['config']->get('cqrses.laravel_eventstore_enabled')) {
136 136
             $app->bind(
137 137
                 EventStore::class,
138
-                function (Application $application) {
138
+                function(Application $application) {
139 139
                     return new LaravelEventStore(
140 140
                         $application->make(DatabaseManager::class),
141 141
                         $application->make(Serializer::class),
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $app->singleton(
156 156
             EventBus::class,
157
-            function (Application $application) {
157
+            function(Application $application) {
158 158
                 $eventBus = $application->make($application['config']->get('cqrses.event_bus'));
159 159
 
160 160
                 foreach ($application['config']->get('cqrses.event_bus_listeners') as $listener) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     {
174 174
         $app->singleton(
175 175
             EventDispatcher::class,
176
-            function (Application $application) {
176
+            function(Application $application) {
177 177
                 /** @var EventDispatcher $dispatcher */
178 178
                 $dispatcher = $application->make($application['config']->get('cqrses.event_dispatcher'));
179 179
 
@@ -193,13 +193,13 @@  discard block
 block discarded – undo
193 193
     protected function getProjectionEventSubscribers(Application $app)
194 194
     {
195 195
         return collect($app['config']->get('cqrses.projections_service_providers'))->map(
196
-            function ($projectionsServiceProvider) use ($app) {
196
+            function($projectionsServiceProvider) use ($app) {
197 197
                 return $app->make($projectionsServiceProvider);
198 198
             }
199 199
         )->map(
200
-            function (ProjectionServiceProvider $projectServiceProvider) use ($app) {
200
+            function(ProjectionServiceProvider $projectServiceProvider) use ($app) {
201 201
                 return collect($projectServiceProvider->getProjections())->map(
202
-                    function ($projection) use ($app) {
202
+                    function($projection) use ($app) {
203 203
                         return $app->make($projection);
204 204
                     }
205 205
                 );
Please login to merge, or discard this patch.
src/StrongConsistency/PushEventThroughQueueWithCommandId.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
         $this->queue->push(
55 55
             QueueToEventDispatcherWithCommandId::class,
56 56
             [
57
-                'uuid'        => (string)$domainMessage->getId(),
57
+                'uuid'        => (string) $domainMessage->getId(),
58 58
                 'playhead'    => $domainMessage->getPlayHead(),
59 59
                 'metadata'    => json_encode($this->serializer->serialize($domainMessage->getMetadata())),
60 60
                 'payload'     => json_encode($this->serializer->serialize($domainMessage->getPayload())),
61
-                'recorded_on' => (string)$domainMessage->getRecordedOn(),
61
+                'recorded_on' => (string) $domainMessage->getRecordedOn(),
62 62
                 'type'        => $domainMessage->getType(),
63 63
                 'command_id'  => $this->notificationsCommandBus->getLastCommandId(),
64 64
             ],
Please login to merge, or discard this patch.
src/StrongConsistency/StrongConsistencyCommandBusMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function execute(Command $command, callable $next)
24 24
     {
25
-        $this->lastCommandId = (string)$command;
25
+        $this->lastCommandId = (string) $command;
26 26
         $next($command);
27 27
     }
28 28
 
Please login to merge, or discard this patch.
src/EventBus/PushEventsThroughQueue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 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())),
51
-                'recorded_on' => (string)$domainMessage->getRecordedOn(),
51
+                'recorded_on' => (string) $domainMessage->getRecordedOn(),
52 52
                 'type'        => $domainMessage->getType(),
53 53
             ],
54 54
             $this->config->get('cqrses.queue_name', 'default')
Please login to merge, or discard this patch.
src/Console/RunProjectionCommand.php 1 patch
Spacing   +11 added lines, -11 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\Console;
4 4
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $projectionRequest = collect(explode(',', $this->argument('projections')));
69 69
 
70 70
         $projectionsServiceProviders = $projectionRequest->each(
71
-            function ($projectionName) {
71
+            function($projectionName) {
72 72
                 if (!isset($this->config->get('cqrses.projections_service_providers')[$projectionName])) {
73 73
                     $this->error("{$projectionName} Does not exist, check cqrses config");
74 74
 
@@ -76,26 +76,26 @@  discard block
 block discarded – undo
76 76
                 }
77 77
             }
78 78
         )->map(
79
-            function ($projectionName) {
79
+            function($projectionName) {
80 80
                 return $this->application->make(
81 81
                     $this->config->get('cqrses.projections_service_providers')[$projectionName]
82 82
                 );
83 83
             }
84 84
         )->each(
85
-            function (ProjectionServiceProvider $projectionClass) {
85
+            function(ProjectionServiceProvider $projectionClass) {
86 86
                 $this->downMigration($projectionClass);
87 87
             }
88 88
         )->each(
89
-            function (ProjectionServiceProvider $projectionClass) {
89
+            function(ProjectionServiceProvider $projectionClass) {
90 90
                 $this->upMigration($projectionClass);
91 91
             }
92 92
         );
93 93
 
94 94
         /** @var Collection|Subscriber[] $projections */
95 95
         $projections = $projectionsServiceProviders->map(
96
-            function (ProjectionServiceProvider $projectServiceProvider) {
96
+            function(ProjectionServiceProvider $projectServiceProvider) {
97 97
                 return collect($projectServiceProvider->getProjections())->map(
98
-                    function ($projection) {
98
+                    function($projection) {
99 99
                         return $this->application->make($projection);
100 100
                     }
101 101
                 );
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
         )->collapse();
104 104
 
105 105
         $events = $projections->map(
106
-            function (Subscriber $subscriber) {
106
+            function(Subscriber $subscriber) {
107 107
                 return array_keys($subscriber->getSubscribedEvents());
108 108
             }
109 109
         )->collapse()->map(
110
-            function ($eventClassName) {
110
+            function($eventClassName) {
111 111
                 return str_replace('\\', '.', $eventClassName);
112 112
             }
113 113
         );
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $this->output->progressAdvance($take > $eventCount ? $eventCount : $take);
155 155
         }
156 156
         $this->output->progressFinish();
157
-        $this->line((memory_get_peak_usage(true) / 1024 / 1024) . "mb Peak Usage", false);
157
+        $this->line((memory_get_peak_usage(true) / 1024 / 1024)."mb Peak Usage", false);
158 158
     }
159 159
 
160 160
     /**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         );
188 188
 
189 189
         $projections->each(
190
-            function ($projection) use ($dispatcher) {
190
+            function($projection) use ($dispatcher) {
191 191
                 $dispatcher->addSubscriber($projection);
192 192
             }
193 193
         );
Please login to merge, or discard this patch.
src/Console/BuildLaravelEventStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 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();
Please login to merge, or discard this patch.