Code Duplication    Length = 5-5 lines in 2 locations

src/EventProjectorServiceProvider.php 2 locations

@@ 29-33 (lines=5) @@
26
            ], 'config');
27
        }
28
29
        if (! class_exists('CreateStoredEventsTable')) {
30
            $this->publishes([
31
                __DIR__.'/../stubs/create_stored_events_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_stored_events_table.php'),
32
            ], 'migrations');
33
        }
34
35
        if (! class_exists('CreateProjectorStatusesTable')) {
36
            $this->publishes([
@@ 35-39 (lines=5) @@
32
            ], 'migrations');
33
        }
34
35
        if (! class_exists('CreateProjectorStatusesTable')) {
36
            $this->publishes([
37
                __DIR__.'/../stubs/create_projector_statuses_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_projector_statuses_table.php'),
38
            ], 'migrations');
39
        }
40
41
        $this->app->bind(EventSerializer::class, config('event-projector.event_serializer'));
42