src/Util/Reader/Stdin.php
protected function getStdIn()
    {
        if ($this->stdIn && !feof($this->stdIn)) {
            return $this->stdIn;
        }

        try {
            $this->setStdIn();
        } catch (\Error $e) {
            throw new RuntimeException('Unable to read from STDIN', 0, $e);
        }

        return $this->stdIn;
    }
protected function getStdIn()
    {
        if ($this->stdIn && !feof($this->stdIn)) {
            return $this->stdIn;
        }

        try {
            $this->setStdIn();
        } catch (\Error $e) {
            throw new RuntimeException('Unable to read from STDIN', 0, $e);
        }

        return $this->stdIn;
    }
protected function getStdIn ( ) { if ( $ this -> stdIn && ! feof ( $ this -> stdIn ) ) { return $ this -> stdIn ; } try { $ this -> setStdIn ( ) ; } catch ( \ Error $ e ) { throw new RuntimeException ( 'Unable to read from STDIN' , 0 , $ e ) ; } return $ this -> stdIn ; }
Return a valid STDIN, even if it previously EOF'ed

Lazily re-opens STDIN after hitting an EOF

@return resource
@throws RuntimeException
Return a valid STDIN even if it previously EOF ed