Passed
Pull Request — master (#91)
by Shinji
02:28 queued 26s
created
config/di.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 return [
44 44
     MemoryReaderInterface::class => autowire(MemoryReader::class),
45
-    ZendTypeReader::class => function () {
45
+    ZendTypeReader::class => function() {
46 46
         return new ZendTypeReader(ZendTypeReader::V80);
47 47
     },
48 48
     SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class),
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
         ->constructorParameter('di_config_file', __DIR__ . '/di.php'),
55 55
     PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class),
56 56
     ProcessSearcherInterface::class => autowire(ProcessSearcher::class),
57
-    Config::class => fn () => Config::load(__DIR__ . '/config.php'),
57
+    Config::class => fn() => Config::load(__DIR__ . '/config.php'),
58 58
     TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class),
59
-    StateCollector::class => function (Container $container) {
59
+    StateCollector::class => function(Container $container) {
60 60
         $collectors = [];
61 61
         $collectors[] = $container->make(ProcessStateCollector::class);
62 62
         $collectors[] = $container->make(CallerStateCollector::class);
63 63
         return new GroupedStateCollector(...$collectors);
64 64
     },
65
-    LoggerInterface::class => function (Config $config) {
65
+    LoggerInterface::class => function(Config $config) {
66 66
         $logger = new Logger('default');
67 67
         $handler = new StreamHandler(
68 68
             $config->get('log.path.default'),
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Worker/PhpReaderTraceLoop.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
53 53
 
54 54
         $loop = $this->reader_loop_provider->getMainLoop(
55
-            function () use (
55
+            function() use (
56 56
                 $get_trace_settings,
57 57
                 $target_process_settings,
58 58
                 $target_php_settings,
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 $eg_address
61 61
             ): Generator {
62 62
                 if ($loop_settings->stop_process and $this->process_stopper->stop($target_process_settings->pid)) {
63
-                    defer($_, fn () => $this->process_stopper->resume($target_process_settings->pid));
63
+                    defer($_, fn() => $this->process_stopper->resume($target_process_settings->pid));
64 64
                 }
65 65
                 $call_trace = $this->executor_globals_reader->readCallTrace(
66 66
                     $target_process_settings->pid,
Please login to merge, or discard this patch.
src/Lib/PhpInternals/Opcodes/OpcodeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function create(string $version, int $opcode): Opcode
41 41
     {
42
-        return match ($version) {
42
+        return match($version) {
43 43
             'v70' => new OpcodeV70($opcode),
44 44
             'v71' => new OpcodeV71($opcode),
45 45
             'v72' => new OpcodeV72($opcode),
Please login to merge, or discard this patch.