@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('snapshots', function (Blueprint $table) { |
|
16 | + Schema::create('snapshots', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('aggregate_root_id', 36)->index(); |
19 | 19 | $table->integer('aggregate_root_version', false, true); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('domain_messages', function (Blueprint $table) { |
|
16 | + Schema::create('domain_messages', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('event_id', 36); |
19 | 19 | $table->string('event_type', 100); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | throw AggregateRootRepositoryInstanciationFailed::aggregateRootClassDoesNotExist(); |
138 | 138 | } |
139 | 139 | |
140 | - if (! is_a($this->aggregateRoot, AggregateRoot::class, true)) { |
|
140 | + if (!is_a($this->aggregateRoot, AggregateRoot::class, true)) { |
|
141 | 141 | throw AggregateRootRepositoryInstanciationFailed::aggregateRootClassIsNotValid(); |
142 | 142 | } |
143 | 143 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | protected function instanciate(array $classes): array |
214 | 214 | { |
215 | - return array_map(function ($class) { |
|
215 | + return array_map(function($class) { |
|
216 | 216 | return is_string($class) |
217 | 217 | ? app()->make($class) |
218 | 218 | : $class; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | $this->mergeConfigFrom(__DIR__.'/../config/eventsauce.php', 'eventsauce'); |
30 | 30 | |
31 | - $this->app->bind(MessageSerializer::class, function () { |
|
31 | + $this->app->bind(MessageSerializer::class, function() { |
|
32 | 32 | return new ConstructingMessageSerializer(); |
33 | 33 | }); |
34 | 34 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function makeDirectory(string $path): void |
70 | 70 | { |
71 | - if (! $this->filesystem->isDirectory(dirname($path))) { |
|
71 | + if (!$this->filesystem->isDirectory(dirname($path))) { |
|
72 | 72 | $this->filesystem->makeDirectory(dirname($path), 0755, true, true); |
73 | 73 | } |
74 | 74 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function makeFiles(array $paths, array $replacements): void |
97 | 97 | { |
98 | - collect($paths)->map(function (string $path, string $stubName) use ($replacements) { |
|
98 | + collect($paths)->map(function(string $path, string $stubName) use ($replacements) { |
|
99 | 99 | $this->filesystem->put($path, $this->getStubContent($stubName, $replacements)); |
100 | 100 | }); |
101 | 101 | } |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | $this->info('Start generating code...'); |
33 | 33 | |
34 | 34 | collect(config('eventsauce.code_generation')) |
35 | - ->reject(function (array $config) { |
|
35 | + ->reject(function(array $config) { |
|
36 | 36 | return is_null($config['input_yaml_file']); |
37 | 37 | }) |
38 | - ->each(function (array $config) { |
|
38 | + ->each(function(array $config) { |
|
39 | 39 | $this->generateCode($config['input_yaml_file'], $config['output_file']); |
40 | 40 | }); |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | private function generateCode(string $inputFile, string $outputFile) |
51 | 51 | { |
52 | - if (! file_exists($inputFile)) { |
|
52 | + if (!file_exists($inputFile)) { |
|
53 | 53 | throw CodeGenerationFailed::definitionFileDoesNotExist($inputFile); |
54 | 54 | } |
55 | 55 |