src/Util/Reader/Stdin.php
protected function setStdIn()
    {
        if ($this->stdIn !== false) {
            fclose($this->stdIn);
        }

        $this->stdIn = fopen('php://stdin', 'r');

        if (!$this->stdIn) {
            throw new RuntimeException('Unable to read from STDIN');
        }
    }
protected function setStdIn()
    {
        if ($this->stdIn !== false) {
            fclose($this->stdIn);
        }

        $this->stdIn = fopen('php://stdin', 'r');

        if (!$this->stdIn) {
            throw new RuntimeException('Unable to read from STDIN');
        }
    }
protected function setStdIn ( ) { if ( $ this -> stdIn !== false ) { fclose ( $ this -> stdIn ) ; } $ this -> stdIn = fopen ( 'php://stdin' , 'r' ) ; if ( ! $ this -> stdIn ) { throw new RuntimeException ( 'Unable to read from STDIN' ) ; } }
Attempt to set the stdin property

@return void
@throws RuntimeException
Attempt to set the stdin property