src/GridFS/Repository.php
private function getStreamProjection($projections)
    {
        if (isset($projections['stream'])) {
            return $projections['stream'];
        } elseif (empty($projections)) {
            return true;
        } else {
            if (isset($projections['_id'])) {
                unset($projections['_id']);
            }
            return reset($projections) ? false : true;
        }
    }
private function getStreamProjection($projections)
    {
        if (isset($projections['stream'])) {
            return $projections['stream'];
        } elseif (empty($projections)) {
            return true;
        } else {
            if (isset($projections['_id'])) {
                unset($projections['_id']);
            }
            return reset($projections) ? false : true;
        }
    }
private function getStreamProjection ( $ projections ) { if ( isset ( $ projections [ 'stream' ] ) ) { return $ projections [ 'stream' ] ; } elseif ( empty ( $ projections ) ) { return true ; } else { if ( isset ( $ projections [ '_id' ] ) ) { unset ( $ projections [ '_id' ] ) ; } return reset ( $ projections ) ? false : true ; } }
Get the stream projection

@param   array   $projections    Projection of query
@return  boolean
Get the stream projection