@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ], |
| 33 | 33 | ])->url(); |
| 34 | 34 | |
| 35 | - $appDir = rtrim($rootDir,DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
| 35 | + $appDir = rtrim($rootDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
| 36 | 36 | $environment = 'testing'; |
| 37 | 37 | |
| 38 | 38 | $this->configServiceProvider = new ConfigServiceProvider(); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | ], |
| 30 | 30 | ])->url(); |
| 31 | 31 | |
| 32 | - $appDir = rtrim($rootDir,DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
| 32 | + $appDir = rtrim($rootDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
| 33 | 33 | $environment = 'testing'; |
| 34 | 34 | |
| 35 | 35 | $this->config = new Config($appDir, $environment); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $self = $this; |
| 18 | 18 | |
| 19 | - $pimple->offsetSet('config', function ($container) use ($self) { |
|
| 19 | + $pimple->offsetSet('config', function($container) use ($self) { |
|
| 20 | 20 | return $self->createConfig($container); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -31,15 +31,15 @@ |
||
| 31 | 31 | |
| 32 | 32 | $this->container = new Container(); |
| 33 | 33 | |
| 34 | - $this->container->offsetSet('queue_client', function ($container) { |
|
| 34 | + $this->container->offsetSet('queue_client', function($container) { |
|
| 35 | 35 | return $this->getMockForAbstractClass(ClientInterface::class); |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - $this->container->offsetSet('process_factory', function ($container) { |
|
| 38 | + $this->container->offsetSet('process_factory', function($container) { |
|
| 39 | 39 | return $this->getMockForAbstractClass(ProcessFactoryInterface::class); |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - $this->container->offsetSet('commands', function ($container) { |
|
| 42 | + $this->container->offsetSet('commands', function($container) { |
|
| 43 | 43 | return []; |
| 44 | 44 | }); |
| 45 | 45 | |
@@ -19,18 +19,18 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $self = $this; |
| 21 | 21 | |
| 22 | - $pimple->offsetSet('job_manager', function ($container) use ($self) { |
|
| 22 | + $pimple->offsetSet('job_manager', function($container) use ($self) { |
|
| 23 | 23 | return $self->createJobManager( |
| 24 | 24 | $container->offsetGet('queue_client'), |
| 25 | 25 | $container->offsetGet('process_factory') |
| 26 | 26 | ); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - $pimple->offsetSet('worker', function ($container) use ($self) { |
|
| 29 | + $pimple->offsetSet('worker', function($container) use ($self) { |
|
| 30 | 30 | return $self->createWorker($container->offsetGet('job_manager')); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | - $pimple->extend('commands', function ($commands, $container) use ($self) { |
|
| 33 | + $pimple->extend('commands', function($commands, $container) use ($self) { |
|
| 34 | 34 | $commands[] = $self->createRunJobCommand($container->offsetGet('job_manager')); |
| 35 | 35 | $commands[] = $self->createStartWorkerCommand($container->offsetGet('worker')); |
| 36 | 36 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $self = $this; |
| 44 | 44 | |
| 45 | - $this->container['config'] = function ($container) use ($self) { |
|
| 45 | + $this->container['config'] = function($container) use ($self) { |
|
| 46 | 46 | return $self->configMock; |
| 47 | 47 | }; |
| 48 | 48 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $self = $this; |
| 23 | 23 | |
| 24 | - $pimple->offsetSet('logger', function ($container) use ($self) { |
|
| 24 | + $pimple->offsetSet('logger', function($container) use ($self) { |
|
| 25 | 25 | return $self->createLogger($container['config']); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | $this->container = new Container(); |
| 32 | 32 | |
| 33 | - $this->container->offsetSet('commands', function ($container) { |
|
| 33 | + $this->container->offsetSet('commands', function($container) { |
|
| 34 | 34 | return []; |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -17,11 +17,11 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $self = $this; |
| 19 | 19 | |
| 20 | - $pimple->offsetSet('scheduler', function ($container) use ($self) { |
|
| 20 | + $pimple->offsetSet('scheduler', function($container) use ($self) { |
|
| 21 | 21 | return $self->createScheduler(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - $pimple->extend('commands', function ($commands, $container) use ($self) { |
|
| 24 | + $pimple->extend('commands', function($commands, $container) use ($self) { |
|
| 25 | 25 | $commands[] = $self->createRunSchedulerCommand($container->offsetGet('scheduler')); |
| 26 | 26 | |
| 27 | 27 | return $commands; |