@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | SpanTagHelper::setTags( |
| 25 | 25 | $span, |
| 26 | - Caller::call($callableConfig, [$event->command, $event->exitCode, $event->input, $event->output]) |
|
| 26 | + Caller::call($callableConfig, [ $event->command, $event->exitCode, $event->input, $event->output ]) |
|
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | 29 | $span->end(); |
@@ -12,36 +12,36 @@ |
||
| 12 | 12 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 13 | 13 | use Symplify\EasyCodingStandard\ValueObject\Option; |
| 14 | 14 | |
| 15 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 15 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 16 | 16 | $containerConfigurator->import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php'); |
| 17 | 17 | |
| 18 | 18 | $services = $containerConfigurator->services(); |
| 19 | 19 | |
| 20 | 20 | $services->set(PhpUnitTestAnnotationFixer::class) |
| 21 | - ->call('configure', [[ |
|
| 21 | + ->call('configure', [ [ |
|
| 22 | 22 | 'style' => 'prefix', |
| 23 | - ]]); |
|
| 23 | + ] ]); |
|
| 24 | 24 | |
| 25 | 25 | $services->set(DeclareStrictTypesFixer::class); |
| 26 | 26 | $services->set(NoUnusedImportsFixer::class); |
| 27 | 27 | $services->set(NoEmptyPhpdocFixer::class); |
| 28 | 28 | |
| 29 | 29 | $services->set(BlankLineBeforeStatementFixer::class) |
| 30 | - ->call('configure', [[ |
|
| 31 | - 'statements' => ['if', 'return'], |
|
| 32 | - ]]); |
|
| 30 | + ->call('configure', [ [ |
|
| 31 | + 'statements' => [ 'if', 'return' ], |
|
| 32 | + ] ]); |
|
| 33 | 33 | |
| 34 | 34 | $services->set(PhpdocLineSpanFixer::class) |
| 35 | - ->call('configure', [[ |
|
| 35 | + ->call('configure', [ [ |
|
| 36 | 36 | 'method' => 'single', |
| 37 | 37 | 'property' => 'single', |
| 38 | 38 | 'const' => 'single', |
| 39 | - ]]); |
|
| 39 | + ] ]); |
|
| 40 | 40 | |
| 41 | 41 | $parameters = $containerConfigurator->parameters(); |
| 42 | 42 | |
| 43 | 43 | $parameters->set(Option::CACHE_DIRECTORY, '.ecs_cache'); |
| 44 | - $parameters->set(Option::FILE_EXTENSIONS, ['php']); |
|
| 44 | + $parameters->set(Option::FILE_EXTENSIONS, [ 'php' ]); |
|
| 45 | 45 | |
| 46 | - $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']); |
|
| 46 | + $parameters->set(Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/tests' ]); |
|
| 47 | 47 | }; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | public function extendJobsDispatcher(): void |
| 55 | 55 | { |
| 56 | 56 | $dispatcher = $this->app->make(Dispatcher::class); |
| 57 | - $this->app->extend(Dispatcher::class, function () use ($dispatcher) { |
|
| 57 | + $this->app->extend(Dispatcher::class, function() use ($dispatcher) { |
|
| 58 | 58 | return $this->app->make(JobWithTracingInjectionDispatcher::class, compact('dispatcher')); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $exporter = new AgentExporter($tracerName, "{$host}:{$port}"); |
| 74 | 74 | |
| 75 | 75 | $tracerProvider = new TracerProvider(new SimpleSpanProcessor($exporter)); |
| 76 | - ShutdownHandler::register([$tracerProvider, 'shutdown']); |
|
| 76 | + ShutdownHandler::register([ $tracerProvider, 'shutdown' ]); |
|
| 77 | 77 | $tracer = $tracerProvider->getTracer($tracerName); |
| 78 | 78 | |
| 79 | 79 | $this->app->instance(TracerInterface::class, $tracer); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | return; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - Event::listen(MessageLogged::class, function (MessageLogged $e) { |
|
| 88 | + Event::listen(MessageLogged::class, function(MessageLogged $e) { |
|
| 89 | 89 | $span = Span::getCurrent(); |
| 90 | 90 | $span->activate(); |
| 91 | 91 | |