Skip to content

Commit c4cf1c6

Browse files
committed
fix cs
1 parent ecd09c7 commit c4cf1c6

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ class Process
119119
/**
120120
* Constructor.
121121
*
122-
* @param string $commandline The command line to run
123-
* @param string|null $cwd The working directory or null to use the working dir of the current PHP process
124-
* @param array|null $env The environment variables or null to inherit
125-
* @param string|null $stdin The STDIN content
126-
* @param integer|float|null $timeout The timeout in seconds or null to disable
127-
* @param array $options An array of options for proc_open
122+
* @param string $commandline The command line to run
123+
* @param string|null $cwd The working directory or null to use the working dir of the current PHP process
124+
* @param array|null $env The environment variables or null to inherit
125+
* @param string|null $stdin The STDIN content
126+
* @param int|float|null $timeout The timeout in seconds or null to disable
127+
* @param array $options An array of options for proc_open
128128
*
129129
* @throws RuntimeException When proc_open is not installed
130130
*
@@ -184,7 +184,7 @@ public function __clone()
184184
* @param callback|null $callback A PHP callback to run whenever there is some
185185
* output available on STDOUT or STDERR
186186
*
187-
* @return integer The exit status code
187+
* @return int The exit status code
188188
*
189189
* @throws RuntimeException When process can't be launch or is stopped
190190
*
@@ -244,7 +244,7 @@ public function start($callback = null)
244244
// Workaround for the bug, when PTS functionality is enabled.
245245
// @see : https://github.com/symfony/symfony/issues/12643
246246
// @see : https://github.com/php/php-src/pull/1588
247-
$ptsWorkaround = fopen("php://fd/0", "r");
247+
$ptsWorkaround = fopen('php://fd/0', 'r');
248248
}
249249

250250
$this->process = proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $this->env, $this->options);
@@ -300,7 +300,7 @@ public function restart($callback = null)
300300
*
301301
* @param callback|null $callback A valid PHP callback
302302
*
303-
* @return integer The exitcode of the process
303+
* @return int The exitcode of the process
304304
*
305305
* @throws RuntimeException When process timed out
306306
* @throws RuntimeException When process stopped after receiving signal
@@ -315,7 +315,7 @@ public function wait($callback = null)
315315
do {
316316
$this->checkTimeout();
317317
$running = defined('PHP_WINDOWS_VERSION_BUILD') ? $this->isRunning() : $this->processPipes->hasOpenHandles();
318-
$close = !defined('PHP_WINDOWS_VERSION_BUILD') || !$running;;
318+
$close = !defined('PHP_WINDOWS_VERSION_BUILD') || !$running;
319319
$this->readPipes(true, $close);
320320
} while ($running);
321321

@@ -337,7 +337,7 @@ public function wait($callback = null)
337337
/**
338338
* Returns the Pid (process identifier), if applicable.
339339
*
340-
* @return integer|null The process id if running, null otherwise
340+
* @return int|null The process id if running, null otherwise
341341
*
342342
* @throws RuntimeException In case --enable-sigchild is activated
343343
*/
@@ -355,7 +355,8 @@ public function getPid()
355355
/**
356356
* Sends a posix signal to the process.
357357
*
358-
* @param integer $signal A valid posix signal (see http://www.php.net/manual/en/pcntl.constants.php)
358+
* @param int $signal A valid posix signal (see http://www.php.net/manual/en/pcntl.constants.php)
359+
*
359360
* @return Process
360361
*
361362
* @throws LogicException In case the process is not running
@@ -447,7 +448,7 @@ public function getIncrementalErrorOutput()
447448
/**
448449
* Returns the exit code returned by the process.
449450
*
450-
* @return integer The exit status code
451+
* @return int The exit status code
451452
*
452453
* @throws RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled
453454
*
@@ -521,7 +522,7 @@ public function hasBeenSignaled()
521522
*
522523
* It is only meaningful if hasBeenSignaled() returns true.
523524
*
524-
* @return integer
525+
* @return int
525526
*
526527
* @throws RuntimeException In case --enable-sigchild is activated
527528
*
@@ -559,7 +560,7 @@ public function hasBeenStopped()
559560
*
560561
* It is only meaningful if hasBeenStopped() returns true.
561562
*
562-
* @return integer
563+
* @return int
563564
*
564565
* @api
565566
*/
@@ -625,10 +626,10 @@ public function getStatus()
625626
/**
626627
* Stops the process.
627628
*
628-
* @param integer|float $timeout The timeout in seconds
629-
* @param integer $signal A posix signal to send in case the process has not stop at timeout, default is SIGKILL
629+
* @param int|float $timeout The timeout in seconds
630+
* @param int $signal A posix signal to send in case the process has not stop at timeout, default is SIGKILL
630631
*
631-
* @return integer The exit-code of the process
632+
* @return int The exit-code of the process
632633
*
633634
* @throws RuntimeException if the process got signaled
634635
*/
@@ -717,7 +718,7 @@ public function getTimeout()
717718
*
718719
* To disable the timeout, set this value to null.
719720
*
720-
* @param integer|float|null $timeout The timeout in seconds
721+
* @param int|float|null $timeout The timeout in seconds
721722
*
722723
* @return self The current Process instance
723724
*
@@ -741,7 +742,7 @@ public function setTimeout($timeout)
741742
/**
742743
* Enables or disables the TTY mode.
743744
*
744-
* @param boolean $tty True to enabled and false to disable
745+
* @param bool $tty True to enabled and false to disable
745746
*
746747
* @return self The current Process instance
747748
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy