public function remove($fromSource, $paths): bool
    {
        $paths = (array)$paths;
        $fromSource = $this->cleanSource($fromSource);
        list($alias) = $this->parse($fromSource);

        $return = false;

        foreach ($paths as $origPath) {
            $path = $this->cleanPathInternal($this->cleanPath($origPath));

            $key = array_search($path, $this->paths[$alias], true);
            if (false !== $key) {
                unset($this->paths[$alias][$key]);
                $return = true;
            }
        }

        return $return;
    }
public function remove($fromSource, $paths): bool
    {
        $paths = (array)$paths;
        $fromSource = $this->cleanSource($fromSource);
        list($alias) = $this->parse($fromSource);

        $return = false;

        foreach ($paths as $origPath) {
            $path = $this->cleanPathInternal($this->cleanPath($origPath));

            $key = array_search($path, $this->paths[$alias], true);
            if (false !== $key) {
                unset($this->paths[$alias][$key]);
                $return = true;
            }
        }

        return $return;
    }
public function remove ( $ fromSource , $ paths ) : bool { $ paths = ( array ) $ paths ; $ fromSource = $ this -> cleanSource ( $ fromSource ) ; list ( $ alias ) = $ this -> parse ( $ fromSource ) ; $ return = false ; foreach ( $ paths as $ origPath ) { $ path = $ this -> cleanPathInternal ( $ this -> cleanPath ( $ origPath ) ) ; $ key = array_search ( $ path , $ this -> paths [ $ alias ] , true ) ; if ( false !== $ key ) { unset ( $ this -> paths [ $ alias ] [ $ key ] ) ; $ return = true ; } } return $ return ; }
Remove path from registered paths for source

@param string       $fromSource (example: "default:file.txt")
@param string|array $paths
@return bool
Remove path from registered paths for source