@@ -46,11 +46,11 @@ |
||
| 46 | 46 | $this->queue->push( |
| 47 | 47 | QueueToEventDispatcherWithCommandId::class, |
| 48 | 48 | [ |
| 49 | - 'uuid' => (string)$domainMessage->getId(), |
|
| 49 | + 'uuid' => (string) $domainMessage->getId(), |
|
| 50 | 50 | 'playhead' => $domainMessage->getPlayHead(), |
| 51 | 51 | 'metadata' => json_encode($this->serializer->serialize($domainMessage->getMetadata())), |
| 52 | 52 | 'payload' => json_encode($this->serializer->serialize($domainMessage->getPayload())), |
| 53 | - 'recorded_on' => (string)$domainMessage->getRecordedOn(), |
|
| 53 | + 'recorded_on' => (string) $domainMessage->getRecordedOn(), |
|
| 54 | 54 | 'type' => $domainMessage->getType(), |
| 55 | 55 | 'command_id' => $this->notificationsCommandBus->getLastCommandId(), |
| 56 | 56 | ] |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | $this->app->singleton( |
| 29 | 29 | CommandBus::class, |
| 30 | - function (Application $application) { |
|
| 30 | + function(Application $application) { |
|
| 31 | 31 | $simpleCommandBus = new SimpleCommandBus( |
| 32 | 32 | $application->make(CommandTranslator::class), |
| 33 | 33 | $application->make(LaravelCommandBusHandlerResolver::class) |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function execute(Command $command) |
| 35 | 35 | { |
| 36 | - $this->lastCommandId = (string)$command; |
|
| 36 | + $this->lastCommandId = (string) $command; |
|
| 37 | 37 | $this->commandBus->execute($command); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | foreach ($commands as $command) { |
| 19 | - while (!Cache::has((string)$command)) { |
|
| 19 | + while (!Cache::has((string) $command)) { |
|
| 20 | 20 | usleep(1000); |
| 21 | 21 | |
| 22 | 22 | if ($i > 8000) { |
@@ -33,6 +33,6 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | function uuid() |
| 35 | 35 | { |
| 36 | - return (string)\Ramsey\Uuid\Uuid::uuid4(); |
|
| 36 | + return (string) \Ramsey\Uuid\Uuid::uuid4(); |
|
| 37 | 37 | } |
| 38 | 38 | } |