@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * read from stream |
66 | 66 | * @param null $length |
67 | - * @return bool|string If there is no more data to read, the process will be blocked |
|
67 | + * @return string If there is no more data to read, the process will be blocked |
|
68 | 68 | */ |
69 | 69 | public function read($length = null) |
70 | 70 | { |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | { |
52 | 52 | $command = "tail -F {$this->file}"; |
53 | 53 | $descriptors = array( |
54 | - 0 => array("pipe", "r"), // stdin is a pipe that the child will read from |
|
55 | - 1 => array("pipe", "w"), // stdout is a pipe that the child will write to |
|
54 | + 0 => array("pipe", "r"), // stdin is a pipe that the child will read from |
|
55 | + 1 => array("pipe", "w"), // stdout is a pipe that the child will write to |
|
56 | 56 | 2 => array("file", $this->error_file, "a") // stderr is a file to write to |
57 | 57 | ); |
58 | 58 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function close() |
79 | 79 | { |
80 | - if(!is_resource($this->process)) { |
|
80 | + if (!is_resource($this->process)) { |
|
81 | 81 | return; |
82 | 82 | } |
83 | 83 | $status = proc_get_status($this->process); |