Code Duplication    Length = 5-5 lines in 2 locations

src/EventProjectorServiceProvider.php 2 locations

@@ 33-37 (lines=5) @@
30
            ], 'config');
31
        }
32
33
        if (! class_exists('CreateStoredEventsTable')) {
34
            $this->publishes([
35
                __DIR__.'/../stubs/create_stored_events_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_stored_events_table.php'),
36
            ], 'migrations');
37
        }
38
39
        if (! class_exists('CreateProjectorStatusesTable')) {
40
            $this->publishes([
@@ 39-43 (lines=5) @@
36
            ], 'migrations');
37
        }
38
39
        if (! class_exists('CreateProjectorStatusesTable')) {
40
            $this->publishes([
41
                __DIR__.'/../stubs/create_projector_statuses_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_projector_statuses_table.php'),
42
            ], 'migrations');
43
        }
44
45
        Event::subscribe(EventSubscriber::class);
46
    }