Passed
Pull Request — master (#9)
by Shinji
02:05 queued 16s
created
src/Command/Inspector/GetTraceCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
125 125
 
126 126
         $this->loop_provider->getMainLoop(
127
-            function () use (
127
+            function() use (
128 128
                 $get_trace_settings,
129 129
                 $target_process_settings,
130 130
                 $target_php_settings,
Please login to merge, or discard this patch.
src/Command/Inspector/GetCurrentFunctionNameCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
122 122
 
123 123
         $this->loop_provider->getMainLoop(
124
-            function () use ($target_process_settings, $target_php_settings, $eg_address, $output): bool {
124
+            function() use ($target_process_settings, $target_php_settings, $eg_address, $output): bool {
125 125
                 $output->writeln(
126 126
                     $this->executor_globals_reader->readCurrentFunctionName(
127 127
                         $target_process_settings->pid,
Please login to merge, or discard this patch.
src/Inspector/Daemon/Searcher/Context/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\Inspector\Daemon\Searcher\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/Inspector/Daemon/Reader/PhpReaderTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $eg_address = $this->php_globals_finder->findExecutorGlobals($target_process_settings, $target_php_settings);
52 52
 
53 53
         $loop = $this->reader_loop_provider->getMainLoop(
54
-            function () use (
54
+            function() use (
55 55
                 $get_trace_settings,
56 56
                 $target_process_settings,
57 57
                 $target_php_settings,
Please login to merge, or discard this patch.
src/Inspector/Daemon/Reader/Context/php-reader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 use PhpProfiler\Inspector\Settings\TraceLoopSettings;
20 20
 use PhpProfiler\Inspector\Daemon\Reader\PhpReaderTask;
21 21
 
22
-return function (Channel $channel): \Generator {
22
+return function(Channel $channel): \Generator {
23 23
 
24 24
     $container = (new ContainerBuilder())->addDefinitions(__DIR__ . '/../../../../../config/di.php')->build();
25 25
 
Please login to merge, or discard this patch.
src/Command/Inspector/DaemonCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
         }
139 139
         exec('stty -icanon -echo');
140 140
 
141
-        Loop::run(function () use (&$readers, $output) {
141
+        Loop::run(function() use (&$readers, $output) {
142 142
             Loop::onReadable(
143 143
                 STDIN,
144 144
                 /** @param resource $stream */
145
-                function (string $watcher_id, $stream) {
145
+                function(string $watcher_id, $stream) {
146 146
                     $key = fread($stream, 1);
147 147
                     if ($key === 'q') {
148 148
                         Loop::cancel($watcher_id);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                     }
151 151
                 }
152 152
             );
153
-            Loop::repeat(10, function () use (&$readers, $output) {
153
+            Loop::repeat(10, function() use (&$readers, $output) {
154 154
                 /** @var array<int, PhpReaderContext> $readers */
155 155
 
156 156
                 $promises = [];
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                         continue;
162 162
                     }
163 163
                     $promises[] = \Amp\call(
164
-                        function () use ($reader, &$readers, $pid, $output) {
164
+                        function() use ($reader, &$readers, $pid, $output) {
165 165
                             /** @psalm-suppress MixedArrayAccess*/
166 166
                             unset($readers[$pid]);
167 167
                             /** @var string $result */
Please login to merge, or discard this patch.