Completed
Push — master ( 7653cc...707947 )
by
unknown
12:44 queued 02:49
created
src/LaravelModulesServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs';
63 63
         Stub::setBasePath($path);
64 64
 
65
-        $this->app->booted(function ($app) {
65
+        $this->app->booted(function($app) {
66 66
             /** @var RepositoryInterface $moduleRepository */
67 67
             $moduleRepository = $app[RepositoryInterface::class];
68 68
             if ($moduleRepository->config('stubs.enabled') === true) {
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function registerServices()
78 78
     {
79
-        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
79
+        $this->app->singleton(Contracts\RepositoryInterface::class, function($app) {
80 80
             $path = $app['config']->get('modules.paths.modules');
81 81
 
82 82
             return new Laravel\LaravelFileRepository($app, $path);
83 83
         });
84
-        $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) {
84
+        $this->app->singleton(Contracts\ActivatorInterface::class, function($app) {
85 85
             $activator = $app['config']->get('modules.activator');
86 86
             $class = $app['config']->get('modules.activators.'.$activator)['class'];
87 87
 
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
 
97 97
     protected function registerMigrations(): void
98 98
     {
99
-        if (! $this->app['config']->get('modules.auto-discover.migrations', true)) {
99
+        if (!$this->app['config']->get('modules.auto-discover.migrations', true)) {
100 100
             return;
101 101
         }
102 102
 
103
-        $this->app->resolving(Migrator::class, function (Migrator $migrator) {
103
+        $this->app->resolving(Migrator::class, function(Migrator $migrator) {
104 104
             $path = implode(DIRECTORY_SEPARATOR, [
105 105
                 $this->app['config']->get('modules.paths.modules'),
106 106
                 '*',
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             ]);
110 110
 
111 111
             collect(glob($path, GLOB_ONLYDIR))
112
-                ->each(function (string $path) use ($migrator) {
112
+                ->each(function(string $path) use ($migrator) {
113 113
                     $migrator->path($path);
114 114
                 });
115 115
         });
Please login to merge, or discard this patch.