Skip to content

Commit

Permalink
Remove variable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Rik van der Heijden committed Jan 30, 2013
1 parent a290bde commit be82020
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Cake/Console/ConsoleInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ public function read() {
}

/**
* Check if data is available on stdin
* Checks if data is available on the stream
*
* @param integer $timeout An optional time to wait for data
* @return bool True for data available, false otherwise
*/
public function dataAvailable($timeout = 0) {
$readFds = array($this->_input);
$writeFds = null;
$errorFds = null;
$readyFds = stream_select($readFds, $writeFds, $errorFds, $timeout);
return ($readyFds > 0);
}
Expand Down

0 comments on commit be82020

Please sign in to comment.