Skip to content

Commit 6fd6caf

Browse files
author
Martin Qvistgård
committed
Fix minor code style issues
1 parent 492a55e commit 6fd6caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,15 @@ public function execute()
337337
1 => array('pipe','w'),
338338
2 => array('pipe', $this->getIsWindows() ? 'a' : 'w'),
339339
);
340-
if (isset($this->_stdIn)) {
340+
if ($this->_stdIn!==null) {
341341
$descriptors[0] = array('pipe', 'r');
342342
}
343343

344344
$process = proc_open($command, $descriptors, $pipes, $this->procCwd, $this->procEnv, $this->procOptions);
345345

346346
if (is_resource($process)) {
347347

348-
if(isset($this->_stdIn)) {
348+
if($this->_stdIn!==null) {
349349
fwrite($pipes[0], $this->_stdIn);
350350
fclose($pipes[0]);
351351
}

0 commit comments

Comments
 (0)