Passed
Push — master ( e9a9c7...5bc030 )
by Aidyn
45s queued 12s
created
database/migrations/2019_12_09_052444_create_snapshots_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
database/migrations/2019_12_09_045325_create_domain_messages_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/AggregateRootRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/EventSauceServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/MakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Console/GenerateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.