@@ -14,20 +14,20 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public function __construct( |
| 16 | 16 | #[Proxy] private readonly ContainerInterface $container, |
| 17 | - ) {} |
|
| 17 | + ){} |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @psalm-suppress InvalidReturnType |
| 21 | 21 | * @psalm-suppress InvalidReturnStatement |
| 22 | 22 | */ |
| 23 | - public function __invoke(LogRecord|array $record): array|LogRecord |
|
| 23 | + public function __invoke(LogRecord | array $record): array | LogRecord |
|
| 24 | 24 | { |
| 25 | 25 | $tracer = $this->container->get(TracerInterface::class); |
| 26 | 26 | \assert($tracer instanceof TracerInterface); |
| 27 | 27 | |
| 28 | 28 | $context = $tracer->getContext(); |
| 29 | 29 | |
| 30 | - if (!empty($context)) { |
|
| 30 | + if (!empty($context)){ |
|
| 31 | 31 | $record['extra']['telemetry'] = $context; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | public function __construct( |
| 16 | 16 | #[Proxy] private readonly ContainerInterface $container, |
| 17 | - ) {} |
|
| 17 | + ) { |
|
| 18 | +} |
|
| 18 | 19 | |
| 19 | 20 | /** |
| 20 | 21 | * @psalm-suppress InvalidReturnType |
@@ -27,7 +28,8 @@ discard block |
||
| 27 | 28 | |
| 28 | 29 | $context = $tracer->getContext(); |
| 29 | 30 | |
| 30 | - if (!empty($context)) { |
|
| 31 | + if (!empty($context)) |
|
| 32 | + { |
|
| 31 | 33 | $record['extra']['telemetry'] = $context; |
| 32 | 34 | } |
| 33 | 35 | |
@@ -31,62 +31,62 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | return RectorConfig::configure() |
| 33 | 33 | ->withPaths([ |
| 34 | - __DIR__ . '/src/*/src', |
|
| 35 | - __DIR__ . '/src/*/*/src', |
|
| 36 | - __DIR__ . '/src/*/*/tests', |
|
| 37 | - __DIR__ . '/src/*/tests', |
|
| 38 | - __DIR__ . '/tests', |
|
| 34 | + __DIR__.'/src/*/src', |
|
| 35 | + __DIR__.'/src/*/*/src', |
|
| 36 | + __DIR__.'/src/*/*/tests', |
|
| 37 | + __DIR__.'/src/*/tests', |
|
| 38 | + __DIR__.'/tests', |
|
| 39 | 39 | ]) |
| 40 | 40 | ->withParallel() |
| 41 | 41 | ->withSkip([ |
| 42 | 42 | IfIssetToCoalescingRector::class, |
| 43 | 43 | RemoveUnusedPrivatePropertyRector::class => [ |
| 44 | - __DIR__ . '/src/Scaffolder/src/Command/BootloaderCommand.php', |
|
| 45 | - __DIR__ . '/src/Scaffolder/src/Command/CommandCommand.php', |
|
| 46 | - __DIR__ . '/src/Scaffolder/src/Command/ConfigCommand.php', |
|
| 47 | - __DIR__ . '/src/Scaffolder/src/Command/ControllerCommand.php', |
|
| 48 | - __DIR__ . '/src/Scaffolder/src/Command/FilterCommand.php', |
|
| 49 | - __DIR__ . '/src/Scaffolder/src/Command/JobHandlerCommand.php', |
|
| 50 | - __DIR__ . '/src/Scaffolder/src/Command/MiddlewareCommand.php', |
|
| 51 | - __DIR__ . '/src/Console/tests/PromptArgumentsTest.php', |
|
| 44 | + __DIR__.'/src/Scaffolder/src/Command/BootloaderCommand.php', |
|
| 45 | + __DIR__.'/src/Scaffolder/src/Command/CommandCommand.php', |
|
| 46 | + __DIR__.'/src/Scaffolder/src/Command/ConfigCommand.php', |
|
| 47 | + __DIR__.'/src/Scaffolder/src/Command/ControllerCommand.php', |
|
| 48 | + __DIR__.'/src/Scaffolder/src/Command/FilterCommand.php', |
|
| 49 | + __DIR__.'/src/Scaffolder/src/Command/JobHandlerCommand.php', |
|
| 50 | + __DIR__.'/src/Scaffolder/src/Command/MiddlewareCommand.php', |
|
| 51 | + __DIR__.'/src/Console/tests/PromptArgumentsTest.php', |
|
| 52 | 52 | ], |
| 53 | 53 | RemoveUnusedPrivateMethodRector::class => [ |
| 54 | - __DIR__ . '/src/Boot/src/Bootloader/ConfigurationBootloader.php', |
|
| 55 | - __DIR__ . '/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php', |
|
| 56 | - __DIR__ . '/src/Cache/src/Bootloader/CacheBootloader.php', |
|
| 57 | - __DIR__ . '/src/Serializer/src/Bootloader/SerializerBootloader.php', |
|
| 58 | - __DIR__ . '/src/Validation/src/Bootloader/ValidationBootloader.php', |
|
| 59 | - __DIR__ . '/src/Translator/tests/IndexerTest.php', |
|
| 60 | - __DIR__ . '/src/Tokenizer/tests/ReflectionFileTest.php', |
|
| 61 | - __DIR__ . '/src/Core/tests/SingletonsTest.php', |
|
| 54 | + __DIR__.'/src/Boot/src/Bootloader/ConfigurationBootloader.php', |
|
| 55 | + __DIR__.'/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php', |
|
| 56 | + __DIR__.'/src/Cache/src/Bootloader/CacheBootloader.php', |
|
| 57 | + __DIR__.'/src/Serializer/src/Bootloader/SerializerBootloader.php', |
|
| 58 | + __DIR__.'/src/Validation/src/Bootloader/ValidationBootloader.php', |
|
| 59 | + __DIR__.'/src/Translator/tests/IndexerTest.php', |
|
| 60 | + __DIR__.'/src/Tokenizer/tests/ReflectionFileTest.php', |
|
| 61 | + __DIR__.'/src/Core/tests/SingletonsTest.php', |
|
| 62 | 62 | ], |
| 63 | 63 | RemoveUselessVarTagRector::class => [ |
| 64 | - __DIR__ . '/src/Console/src/Traits/HelpersTrait.php', |
|
| 64 | + __DIR__.'/src/Console/src/Traits/HelpersTrait.php', |
|
| 65 | 65 | ], |
| 66 | 66 | RemoveAlwaysTrueIfConditionRector::class => [ |
| 67 | - __DIR__ . '/src/Boot/src/BootloadManager/Initializer.php', |
|
| 68 | - __DIR__ . '/src/Stempler/src/Traverser.php', |
|
| 69 | - __DIR__ . '/src/Prototype/src/NodeVisitors/LocateProperties.php', |
|
| 70 | - __DIR__ . '/src/Prototype/src/NodeVisitors/RemoveTrait.php', |
|
| 71 | - __DIR__ . '/src/Logger/src/ListenerRegistry.php', |
|
| 72 | - __DIR__ . '/src/Stempler/src/Transform/Merge/ExtendsParent.php', |
|
| 73 | - __DIR__ . '/src/Bridge/Stempler/src/StemplerEngine.php', |
|
| 67 | + __DIR__.'/src/Boot/src/BootloadManager/Initializer.php', |
|
| 68 | + __DIR__.'/src/Stempler/src/Traverser.php', |
|
| 69 | + __DIR__.'/src/Prototype/src/NodeVisitors/LocateProperties.php', |
|
| 70 | + __DIR__.'/src/Prototype/src/NodeVisitors/RemoveTrait.php', |
|
| 71 | + __DIR__.'/src/Logger/src/ListenerRegistry.php', |
|
| 72 | + __DIR__.'/src/Stempler/src/Transform/Merge/ExtendsParent.php', |
|
| 73 | + __DIR__.'/src/Bridge/Stempler/src/StemplerEngine.php', |
|
| 74 | 74 | ], |
| 75 | 75 | RemoveExtraParametersRector::class => [ |
| 76 | - __DIR__ . '/src/Boot/src/BootloadManager/AbstractBootloadManager.php', |
|
| 76 | + __DIR__.'/src/Boot/src/BootloadManager/AbstractBootloadManager.php', |
|
| 77 | 77 | ], |
| 78 | 78 | RemoveUnusedPrivateMethodParameterRector::class => [ |
| 79 | - __DIR__ . '/src/Core/src/Internal/Factory.php', |
|
| 80 | - __DIR__ . '/src/Core/tests/InjectableTest.php', |
|
| 79 | + __DIR__.'/src/Core/src/Internal/Factory.php', |
|
| 80 | + __DIR__.'/src/Core/tests/InjectableTest.php', |
|
| 81 | 81 | ], |
| 82 | 82 | RemoveDoubleAssignRector::class => [ |
| 83 | - __DIR__ . '/src/Core/tests/Scope/FinalizeAttributeTest.php', |
|
| 83 | + __DIR__.'/src/Core/tests/Scope/FinalizeAttributeTest.php', |
|
| 84 | 84 | ], |
| 85 | 85 | RemoveUnusedVariableAssignRector::class => [ |
| 86 | - __DIR__ . '/src/Core/tests/ExceptionsTest.php', |
|
| 86 | + __DIR__.'/src/Core/tests/ExceptionsTest.php', |
|
| 87 | 87 | ], |
| 88 | 88 | RemoveDeadStmtRector::class => [ |
| 89 | - __DIR__ . '/src/Core/tests/ExceptionsTest.php', |
|
| 89 | + __DIR__.'/src/Core/tests/ExceptionsTest.php', |
|
| 90 | 90 | ], |
| 91 | 91 | |
| 92 | 92 | // to be enabled later for bc break 4.x |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | NewInInitializerRector::class, |
| 97 | 97 | |
| 98 | 98 | // start with short open tag |
| 99 | - __DIR__ . '/src/Views/tests/fixtures/other/var.php', |
|
| 100 | - __DIR__ . '/tests/app/views/native.php', |
|
| 99 | + __DIR__.'/src/Views/tests/fixtures/other/var.php', |
|
| 100 | + __DIR__.'/tests/app/views/native.php', |
|
| 101 | 101 | |
| 102 | 102 | // example code for test |
| 103 | 103 | '*/Fixture/*', |
@@ -107,24 +107,24 @@ discard block |
||
| 107 | 107 | '*/Stubs/*', |
| 108 | 108 | '*/tests/Classes/*', |
| 109 | 109 | '*/tests/Internal/*', |
| 110 | - __DIR__ . '/src/Console/tests/Configurator', |
|
| 110 | + __DIR__.'/src/Console/tests/Configurator', |
|
| 111 | 111 | |
| 112 | 112 | // cache |
| 113 | 113 | '*/runtime/cache/*', |
| 114 | 114 | |
| 115 | 115 | ReadOnlyPropertyRector::class => [ |
| 116 | 116 | // used by Configurator |
| 117 | - __DIR__ . '/src/Scaffolder/src/Command', |
|
| 117 | + __DIR__.'/src/Scaffolder/src/Command', |
|
| 118 | 118 | ], |
| 119 | 119 | |
| 120 | 120 | FirstClassCallableRector::class => [ |
| 121 | - __DIR__ . '/src/Core/tests/Scope/UseCaseTest.php', |
|
| 121 | + __DIR__.'/src/Core/tests/Scope/UseCaseTest.php', |
|
| 122 | 122 | ], |
| 123 | 123 | |
| 124 | 124 | PreferPHPUnitThisCallRector::class, |
| 125 | 125 | |
| 126 | 126 | MakeInheritedMethodVisibilitySameAsParentRector::class => [ |
| 127 | - __DIR__ . '/src/Models/tests/PublicEntity.php', |
|
| 127 | + __DIR__.'/src/Models/tests/PublicEntity.php', |
|
| 128 | 128 | ], |
| 129 | 129 | |
| 130 | 130 | // Explicit behavior is more preferable |