Skip to content

Commit

Permalink
Apply "visibility_required" CS rule to constants
Browse files Browse the repository at this point in the history
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
  • Loading branch information
nicolas-grekas committed Dec 8, 2020
1 parent ec1482f commit 075316f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Exception/ProcessTimedOutException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*/
class ProcessTimedOutException extends RuntimeException
{
const TYPE_GENERAL = 1;
const TYPE_IDLE = 2;
public const TYPE_GENERAL = 1;
public const TYPE_IDLE = 2;

private $process;
private $timeoutType;
Expand Down
2 changes: 1 addition & 1 deletion Pipes/PipesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
interface PipesInterface
{
const CHUNK_SIZE = 16384;
public const CHUNK_SIZE = 16384;

/**
* Returns an array of descriptors for the use of proc_open.
Expand Down
26 changes: 13 additions & 13 deletions Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@
*/
class Process implements \IteratorAggregate
{
const ERR = 'err';
const OUT = 'out';
public const ERR = 'err';
public const OUT = 'out';

const STATUS_READY = 'ready';
const STATUS_STARTED = 'started';
const STATUS_TERMINATED = 'terminated';
public const STATUS_READY = 'ready';
public const STATUS_STARTED = 'started';
public const STATUS_TERMINATED = 'terminated';

const STDIN = 0;
const STDOUT = 1;
const STDERR = 2;
public const STDIN = 0;
public const STDOUT = 1;
public const STDERR = 2;

// Timeout Precision in seconds.
const TIMEOUT_PRECISION = 0.2;
public const TIMEOUT_PRECISION = 0.2;

const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking
const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory
const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating
const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating
public const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking
public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory
public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating
public const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating

private $callback;
private $hasCallback = false;
Expand Down

0 comments on commit 075316f

Please sign in to comment.