src/Bin.php
/**
     * Check input resource type.
     *
     * @param resource $stream Input resource
     *
     * @return bool
     */
Check input resource type.
@param resource $stream Input resource

@return bool
Check input resource type . @param resource $stream Input resource @return bool
private function validate($stream): bool
    {
        $meta = stream_get_meta_data($stream);
        switch ($meta['wrapper_type']) {
            case 'PHP':
                return false === $meta['seekable']; 
            case 'plainfile':
            default:
                return true;
        }
    }
private function validate ( $ stream ) : bool { $ meta = stream_get_meta_data ( $ stream ) ; switch ( $ meta [ 'wrapper_type' ] ) { case 'PHP' : return false === $ meta [ 'seekable' ] ; case 'plainfile' : default : return true ; } }
Check input resource type.
Check input resource type .
// Seekable PHP equals NO input