Passed
Pull Request — master (#9)
by Shinji
01:26
created
src/Command/Inspector/DaemonCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
         }
50 50
         exec('stty -icanon -echo');
51 51
 
52
-        Loop::run(function () use (&$readers, $output) {
52
+        Loop::run(function() use (&$readers, $output) {
53 53
             Loop::onReadable(
54 54
                 STDIN,
55 55
                 /** @param resource $stream */
56
-                function (string $watcher_id, $stream) {
56
+                function(string $watcher_id, $stream) {
57 57
                     $key = fread($stream, 1);
58 58
                     if ($key === 'q') {
59 59
                         Loop::cancel($watcher_id);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                     }
62 62
                 }
63 63
             );
64
-            Loop::repeat(10, function () use (&$readers, $output) {
64
+            Loop::repeat(10, function() use (&$readers, $output) {
65 65
                 /** @var array<int, Context\Context> $readers */
66 66
 
67 67
                 $promises = [];
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                         continue;
73 73
                     }
74 74
                     $promises[] = \Amp\call(
75
-                        function () use ($reader, &$readers, $pid, $output) {
75
+                        function() use ($reader, &$readers, $pid, $output) {
76 76
                             /** @psalm-suppress MixedArrayAccess*/
77 77
                             unset($readers[$pid]);
78 78
                             /** @var string $result */
Please login to merge, or discard this patch.
src/Command/Inspector/Worker/php-searcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 use DI\ContainerBuilder;
16 16
 use PhpProfiler\Lib\Concurrency\Amphp\Task\PhpSearcherTask;
17 17
 
18
-return function (Channel $channel): \Generator {
18
+return function(Channel $channel): \Generator {
19 19
     $container = (new ContainerBuilder())->addDefinitions(__DIR__ . '/../../../../config/di.php')->build();
20 20
 
21 21
     /** @var PhpSearcherTask $searcher */
Please login to merge, or discard this patch.
src/Lib/Concurrency/Amphp/Task/PhpReaderTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings);
50 50
 
51 51
         $loop = $this->reader_loop_provider->getMainLoop(
52
-            function () use ($get_trace_settings, $target_process_settings, $eg_address): \Generator {
52
+            function() use ($get_trace_settings, $target_process_settings, $eg_address): \Generator {
53 53
 
54 54
                 $call_trace = $this->executor_globals_reader->readCallTrace(
55 55
                     $target_process_settings->pid,
Please login to merge, or discard this patch.
src/Command/Inspector/Worker/php-reader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 use PhpProfiler\Command\Inspector\Settings\TraceLoopSettings;
19 19
 use PhpProfiler\Lib\Concurrency\Amphp\Task\PhpReaderTask;
20 20
 
21
-return function (Channel $channel): \Generator {
21
+return function(Channel $channel): \Generator {
22 22
 
23 23
     $container = (new ContainerBuilder())->addDefinitions(__DIR__ . '/../../../../config/di.php')->build();
24 24
 
Please login to merge, or discard this patch.