@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs'; |
| 67 | 67 | Stub::setBasePath($path); |
| 68 | 68 | |
| 69 | - $this->app->booted(function ($app) { |
|
| 69 | + $this->app->booted(function($app) { |
|
| 70 | 70 | /** @var RepositoryInterface $moduleRepository */ |
| 71 | 71 | $moduleRepository = $app[RepositoryInterface::class]; |
| 72 | 72 | if ($moduleRepository->config('stubs.enabled') === true) { |
@@ -80,12 +80,12 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | protected function registerServices() |
| 82 | 82 | { |
| 83 | - $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) { |
|
| 83 | + $this->app->singleton(Contracts\RepositoryInterface::class, function($app) { |
|
| 84 | 84 | $path = $app['config']->get('modules.paths.modules'); |
| 85 | 85 | |
| 86 | 86 | return new Laravel\LaravelFileRepository($app, $path); |
| 87 | 87 | }); |
| 88 | - $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) { |
|
| 88 | + $this->app->singleton(Contracts\ActivatorInterface::class, function($app) { |
|
| 89 | 89 | $activator = $app['config']->get('modules.activator'); |
| 90 | 90 | $class = $app['config']->get('modules.activators.'.$activator)['class']; |
| 91 | 91 | |
@@ -100,11 +100,11 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | protected function registerMigrations(): void |
| 102 | 102 | { |
| 103 | - if (! $this->app['config']->get('modules.auto-discover.migrations', true)) { |
|
| 103 | + if (!$this->app['config']->get('modules.auto-discover.migrations', true)) { |
|
| 104 | 104 | return; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - $this->app->resolving(Migrator::class, function (Migrator $migrator) { |
|
| 107 | + $this->app->resolving(Migrator::class, function(Migrator $migrator) { |
|
| 108 | 108 | $path = implode(DIRECTORY_SEPARATOR, [ |
| 109 | 109 | $this->app['config']->get('modules.paths.modules'), |
| 110 | 110 | '*', |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | ]); |
| 114 | 114 | |
| 115 | 115 | collect(glob($path, GLOB_ONLYDIR)) |
| 116 | - ->each(function (string $path) use ($migrator) { |
|
| 116 | + ->each(function(string $path) use ($migrator) { |
|
| 117 | 117 | $migrator->path($path); |
| 118 | 118 | }); |
| 119 | 119 | }); |
@@ -121,11 +121,11 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | protected function registerTransactions(): void |
| 123 | 123 | { |
| 124 | - if (! $this->app['config']->get('modules.auto-discover.translations', true)) { |
|
| 124 | + if (!$this->app['config']->get('modules.auto-discover.translations', true)) { |
|
| 125 | 125 | return; |
| 126 | 126 | } |
| 127 | - $this->callAfterResolving('translator', function (TranslatorContract $translator) { |
|
| 128 | - if (! $translator instanceof Translator) { |
|
| 127 | + $this->callAfterResolving('translator', function(TranslatorContract $translator) { |
|
| 128 | + if (!$translator instanceof Translator) { |
|
| 129 | 129 | return; |
| 130 | 130 | } |
| 131 | 131 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | ]); |
| 137 | 137 | |
| 138 | 138 | collect(glob($path, GLOB_ONLYDIR)) |
| 139 | - ->each(function (string $path) use ($translator) { |
|
| 139 | + ->each(function(string $path) use ($translator) { |
|
| 140 | 140 | preg_match('/\/([^\/]+)\/lang/', $path, $matches); |
| 141 | 141 | $translator->addNamespace(strtolower($matches[1]), $path); |
| 142 | 142 | $translator->addJsonPath($path); |