@@ -29,9 +29,9 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function handle(DomainMessage $domainMessage) |
| 31 | 31 | { |
| 32 | - $name = explode('.',$domainMessage->getType()); |
|
| 32 | + $name = explode('.', $domainMessage->getType()); |
|
| 33 | 33 | |
| 34 | 34 | $name = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', end($name)); |
| 35 | - $this->log->debug(trim(ucwords($name)) . " ({$domainMessage->getType()})"); |
|
| 35 | + $this->log->debug(trim(ucwords($name))." ({$domainMessage->getType()})"); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public function register() |
| 41 | 41 | { |
| 42 | 42 | |
| 43 | - $configPath = __DIR__ . '/../config/cqrses.php'; |
|
| 43 | + $configPath = __DIR__.'/../config/cqrses.php'; |
|
| 44 | 44 | $this->mergeConfigFrom($configPath, 'cqrses'); |
| 45 | 45 | |
| 46 | 46 | $app = $this->app; |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public function boot() |
| 74 | 74 | { |
| 75 | - $configPath = __DIR__ . '/../config/cqrses.php'; |
|
| 75 | + $configPath = __DIR__.'/../config/cqrses.php'; |
|
| 76 | 76 | $this->publishes([$configPath => $this->getConfigPath()], 'config'); |
| 77 | 77 | |
| 78 | 78 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | $this->app->singleton( |
| 120 | 120 | CommandBus::class, |
| 121 | - function () use ($middlewareChain) { |
|
| 121 | + function() use ($middlewareChain) { |
|
| 122 | 122 | return new \SmoothPhp\CommandBus\CommandBus($middlewareChain); |
| 123 | 123 | } |
| 124 | 124 | ); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | if ($app['config']->get('cqrses.laravel_eventstore_enabled')) { |
| 142 | 142 | $app->bind( |
| 143 | 143 | EventStore::class, |
| 144 | - function (Application $application) { |
|
| 144 | + function(Application $application) { |
|
| 145 | 145 | return new LaravelEventStore( |
| 146 | 146 | $application->make(DatabaseManager::class), |
| 147 | 147 | $application->make(Serializer::class), |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | { |
| 161 | 161 | $app->singleton( |
| 162 | 162 | EventBus::class, |
| 163 | - function (Application $application) { |
|
| 163 | + function(Application $application) { |
|
| 164 | 164 | $eventBus = $application->make($application['config']->get('cqrses.event_bus')); |
| 165 | 165 | |
| 166 | 166 | foreach ($application['config']->get('cqrses.event_bus_listeners') as $listener) { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | $app->singleton( |
| 181 | 181 | EventDispatcher::class, |
| 182 | - function (Application $application) { |
|
| 182 | + function(Application $application) { |
|
| 183 | 183 | return $application->make($application['config']->get('cqrses.event_dispatcher')); |
| 184 | 184 | } |
| 185 | 185 | ); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function getStub() |
| 31 | 31 | { |
| 32 | - return __DIR__ . '/../../stubs/command.stub'; |
|
| 32 | + return __DIR__.'/../../stubs/command.stub'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | protected function getStub() |
| 31 | 31 | { |
| 32 | - return __DIR__ . '/../../stubs/commandHandler.stub'; |
|
| 32 | + return __DIR__.'/../../stubs/commandHandler.stub'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | protected function replacementVariables() |
| 39 | 39 | { |
| 40 | 40 | return [ |
| 41 | - 'className' => $this->argument('name') . 'Handler', |
|
| 41 | + 'className' => $this->argument('name').'Handler', |
|
| 42 | 42 | 'commandName' => $this->argument('name'), |
| 43 | 43 | ]; |
| 44 | 44 | } |
@@ -56,6 +56,6 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function getClassName() |
| 58 | 58 | { |
| 59 | - return $this->argument('name') . 'Handler'; |
|
| 59 | + return $this->argument('name').'Handler'; |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | \ No newline at end of file |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function getStub() |
| 31 | 31 | { |
| 32 | - return __DIR__ . '/../../stubs/event.stub'; |
|
| 32 | + return __DIR__.'/../../stubs/event.stub'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function getStub() |
| 31 | 31 | { |
| 32 | - return __DIR__ . '/../../stubs/aggregate.stub'; |
|
| 32 | + return __DIR__.'/../../stubs/aggregate.stub'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | public function handle() |
| 28 | 28 | { |
| 29 | 29 | $name = $this->argument('name'); |
| 30 | - $path = base_path() . '/' . $this->argument('path'); |
|
| 30 | + $path = base_path().'/'.$this->argument('path'); |
|
| 31 | 31 | |
| 32 | 32 | $folders = [ |
| 33 | 33 | 'Commands', |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | ]; |
| 39 | 39 | |
| 40 | 40 | foreach ($folders as $folder) { |
| 41 | - mkdir($path . '/' . $name . '/' . $folder, 0777, true); |
|
| 41 | + mkdir($path.'/'.$name.'/'.$folder, 0777, true); |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | \ No newline at end of file |