@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | // Check process status at every turn |
63 | 63 | do { |
64 | - sleep($sleep); |
|
64 | + sleep($sleep); |
|
65 | 65 | |
66 | 66 | // Read prog output |
67 | 67 | if (isset($descriptors[1]) && |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | $i++; |
110 | 110 | } while ($procStatus['running']); |
111 | 111 | |
112 | - fclose($pipes[1]); |
|
113 | - fclose($pipes[2]); |
|
112 | + fclose($pipes[1]); |
|
113 | + fclose($pipes[2]); |
|
114 | 114 | |
115 | 115 | if ($procStatus['exitcode'] > 0) |
116 | 116 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | // If callback only after N turns |
83 | - if ( !$callbackTurns || in_array($i, array(0, $callbackTurns)) ) |
|
83 | + if (!$callbackTurns || in_array($i, array(0, $callbackTurns))) |
|
84 | 84 | { |
85 | 85 | if ($showProgress) { |
86 | 86 | echo ".\n"; |