@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace SmoothPhp\LaravelAdapter; |
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 SmoothPhp\LaravelAdapter; |
4 | 4 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function register() |
40 | 40 | { |
41 | 41 | |
42 | - $configPath = __DIR__ . '/../config/cqrses.php'; |
|
42 | + $configPath = __DIR__.'/../config/cqrses.php'; |
|
43 | 43 | $this->mergeConfigFrom($configPath, 'cqrses'); |
44 | 44 | |
45 | 45 | $app = $this->app; |
@@ -66,7 +66,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ); |