/**
* @param string $command
- * @param string $file
+ * @param string|null $file
*/
function __construct( $command, $file = null ) {
if ( !is_null( $file ) ) {
* @param string $command
*/
function startCommand( $command ) {
- $spec = array(
- 0 => array( "pipe", "r" ),
- );
- $pipes = array();
+ $spec = [
+ 0 => [ "pipe", "r" ],
+ ];
+ $pipes = [];
$this->procOpenResource = proc_open( $command, $spec, $pipes );
$this->handle = $pipes[0];
}