public function unlock($resource) {
        if ($this->hasExclusiveLock($resource)) {
            $this->exclusiveLock = null;
        }
        if ($this->hasSharedLock($resource)) {
            unset($this->sharedLock[$this->getResourceId($resource)]);
        }
    }
public function unlock($resource) {
        if ($this->hasExclusiveLock($resource)) {
            $this->exclusiveLock = null;
        }
        if ($this->hasSharedLock($resource)) {
            unset($this->sharedLock[$this->getResourceId($resource)]);
        }
    }
public function unlock ( $ resource ) { if ( $ this -> hasExclusiveLock ( $ resource ) ) { $ this -> exclusiveLock = null ; } if ( $ this -> hasSharedLock ( $ resource ) ) { unset ( $ this -> sharedLock [ $ this -> getResourceId ( $ resource ) ] ) ; } }
Removes lock from file acquired by given resource

@param   resource|vfsStreamWrapper $resource
@see     https://github.com/mikey179/vfsStream/issues/40
Removes lock from file acquired by given resource