Completed
Push — master ( 476b65...49027b )
by
unknown
10:04 queued 15s
created
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs';
47 47
         Stub::setBasePath($path);
48 48
 
49
-        $this->app->booted(function ($app) {
49
+        $this->app->booted(function($app) {
50 50
             /** @var RepositoryInterface $moduleRepository */
51 51
             $moduleRepository = $app[RepositoryInterface::class];
52 52
             if ($moduleRepository->config('stubs.enabled') === true) {
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function registerServices()
62 62
     {
63
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
63
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
64 64
             $path = $app['config']->get('modules.paths.modules');
65 65
 
66 66
             return new Laravel\LaravelFileRepository($app, $path);
67 67
         });
68
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
68
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
69 69
             $activator = $app['config']->get('modules.activator');
70 70
             $class = $app['config']->get('modules.activators.'.$activator)['class'];
71 71
 
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 
81 81
     protected function registerMigrations(): void
82 82
     {
83
-        if (! $this->app['config']->get('modules.auto-discover.migrations', true)) {
83
+        if (!$this->app['config']->get('modules.auto-discover.migrations', true)) {
84 84
             return;
85 85
         }
86 86
 
87
-        $this->app->resolving(Migrator::class, function (Migrator $migrator) {
87
+        $this->app->resolving(Migrator::class, function(Migrator $migrator) {
88 88
 
89 89
             $path = implode(DIRECTORY_SEPARATOR, [
90 90
                 $this->app['config']->get('modules.paths.modules'),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             ]);
95 95
 
96 96
             collect(glob($path, GLOB_ONLYDIR))
97
-                ->each(function (string $path) use ($migrator) {
97
+                ->each(function(string $path) use ($migrator) {
98 98
                     $migrator->path($path);
99 99
                 });
100 100
         });
Please login to merge, or discard this patch.