@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare (strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace SmoothPhp\LaravelAdapter\QueuedEventDispatcher; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare (strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace SmoothPhp\LaravelAdapter\QueuedEventDispatcher; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
28 | 28 | */ |
29 | 29 | public function getSubscribedEvents() |
30 | 30 | { |
31 | - return [TestEvent::class => ['whenTestEvent'],]; |
|
31 | + return [TestEvent::class => ['whenTestEvent'], ]; |
|
32 | 32 | } |
33 | 33 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare (strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Tests\EventDispatcher\Helpers; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare (strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Tests\EventDispatcher; |
4 | 4 |