Passed
Pull Request — master (#46)
by Shinji
02:34 queued 59s
created
resources/templates/phpspy_with_opcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,5 +15,5 @@
 block discarded – undo
15 15
 /** @var CallTrace $call_trace */
16 16
 ?>
17 17
 <?php foreach ($call_trace->call_frames as $depth => $frame): ?>
18
-<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName() , "\n" ?>
18
+<?= $depth ?> <?= $frame->getFullyQualifiedFunctionName() ?> <?= $frame->file_name ?>:<?= $frame->getLineno() ?>:<?= $frame->getOpcodeName(), "\n" ?>
19 19
 <?php endforeach ?>
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
             'v71' => new OpcodeV71($opcode),
44 44
             'v72' => new OpcodeV72($opcode),
45 45
             'v73' => new OpcodeV73($opcode),
Please login to merge, or discard this patch.
config/di.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 return [
38 38
     MemoryReaderInterface::class => autowire(MemoryReader::class),
39
-    ZendTypeReader::class => function () {
39
+    ZendTypeReader::class => function() {
40 40
         return new ZendTypeReader(ZendTypeReader::V80);
41 41
     },
42 42
     SymbolResolverCreatorInterface::class => autowire(Elf64SymbolResolverCreator::class),
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
         ->constructorParameter('di_config_file', __DIR__ . '/di.php'),
49 49
     PhpReaderTraceLoopInterface::class => autowire(PhpReaderTraceLoop::class),
50 50
     ProcessSearcherInterface::class => autowire(ProcessSearcher::class),
51
-    Config::class => fn () => Config::load(__DIR__ . '/config.php'),
51
+    Config::class => fn() => Config::load(__DIR__ . '/config.php'),
52 52
     TemplatePathResolverInterface::class => autowire(TemplatePathResolver::class),
53
-    LoggerInterface::class => function (Config $config) {
53
+    LoggerInterface::class => function(Config $config) {
54 54
         $logger = new Logger('default');
55 55
         $logger->pushHandler(
56 56
             new StreamHandler(
Please login to merge, or discard this patch.