@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $projectionRequest = collect(explode(',', $this->argument('projections'))); |
| 74 | 74 | |
| 75 | 75 | $projectionsServiceProviders = $projectionRequest->each( |
| 76 | - function ($projectionName) { |
|
| 76 | + function($projectionName) { |
|
| 77 | 77 | if (!isset($this->config->get('cqrses.projections_service_providers')[$projectionName])) { |
| 78 | 78 | $this->error("{$projectionName} Does not exist, check cqrses config"); |
| 79 | 79 | |
@@ -81,26 +81,26 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | )->map( |
| 84 | - function ($projectionName) { |
|
| 84 | + function($projectionName) { |
|
| 85 | 85 | return $this->application->make( |
| 86 | 86 | $this->config->get('cqrses.projections_service_providers')[$projectionName] |
| 87 | 87 | ); |
| 88 | 88 | } |
| 89 | 89 | )->each( |
| 90 | - function (ProjectionServiceProvider $projectionClass) { |
|
| 90 | + function(ProjectionServiceProvider $projectionClass) { |
|
| 91 | 91 | $this->downMigration($projectionClass); |
| 92 | 92 | } |
| 93 | 93 | )->each( |
| 94 | - function (ProjectionServiceProvider $projectionClass) { |
|
| 94 | + function(ProjectionServiceProvider $projectionClass) { |
|
| 95 | 95 | $this->upMigration($projectionClass); |
| 96 | 96 | } |
| 97 | 97 | ); |
| 98 | 98 | |
| 99 | 99 | /** @var Collection|Subscriber[] $projections */ |
| 100 | 100 | $projections = $projectionsServiceProviders->map( |
| 101 | - function (ProjectionServiceProvider $projectServiceProvider) { |
|
| 101 | + function(ProjectionServiceProvider $projectServiceProvider) { |
|
| 102 | 102 | return collect($projectServiceProvider->getProjections())->map( |
| 103 | - function ($projection) { |
|
| 103 | + function($projection) { |
|
| 104 | 104 | return $this->application->make($projection); |
| 105 | 105 | } |
| 106 | 106 | ); |
@@ -108,11 +108,11 @@ discard block |
||
| 108 | 108 | )->collapse(); |
| 109 | 109 | |
| 110 | 110 | $events = $projections->map( |
| 111 | - function (Subscriber $subscriber) { |
|
| 111 | + function(Subscriber $subscriber) { |
|
| 112 | 112 | return array_keys($subscriber->getSubscribedEvents()); |
| 113 | 113 | } |
| 114 | 114 | )->collapse()->map( |
| 115 | - function ($eventClassName) { |
|
| 115 | + function($eventClassName) { |
|
| 116 | 116 | return str_replace('\\', '.', $eventClassName); |
| 117 | 117 | } |
| 118 | 118 | ); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $this->output->progressAdvance($take > $eventCount ? $eventCount : $take); |
| 160 | 160 | } |
| 161 | 161 | $this->output->progressFinish(); |
| 162 | - $this->line((memory_get_peak_usage(true) / 1024 / 1024) . "mb Peak Usage", false); |
|
| 162 | + $this->line((memory_get_peak_usage(true) / 1024 / 1024)."mb Peak Usage", false); |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $dispatcher = $this->application->make($this->config->get('cqrses.event_dispatcher')); |
| 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 | ); |