src/PortaText/Client/Curl.php
private function openFile($file, $mode)
    {
        $handle = @fopen($file, $mode);
        if ($handle === false) {
            throw new \InvalidArgumentException("Could not open $file");
        }
        return $handle;
    }
private function openFile($file, $mode)
    {
        $handle = @fopen($file, $mode);
        if ($handle === false) {
            throw new \InvalidArgumentException("Could not open $file");
        }
        return $handle;
    }
private function openFile ( $ file , $ mode ) { $ handle = @ fopen ( $ file , $ mode ) ; if ( $ handle === false ) { throw new \ InvalidArgumentException ( "Could not open $file" ) ; } return $ handle ; }
Opens a file and returns a file handle.

@param string $file The filename.
@param string $mode The mode.

@return resource|false
Opens a file and returns a file handle .