protected function fixRelativePaths(array $paths)
    {
        $base = dirname($this->path);
        $base = ($base === '.') ? '' : "{$base}/";

        array_walk_recursive(
            $paths,
            function (&$path) use ($base) {
                $path = "{$base}{$path}";
            }
        );
        return $paths;
    }
protected function fixRelativePaths(array $paths)
    {
        $base = dirname($this->path);
        $base = ($base === '.') ? '' : "{$base}/";

        array_walk_recursive(
            $paths,
            function (&$path) use ($base) {
                $path = "{$base}{$path}";
            }
        );
        return $paths;
    }
protected function fixRelativePaths ( array $ paths ) { $ base = dirname ( $ this -> path ) ; $ base = ( $ base === '.' ) ? '' : "{$base}/" ; array_walk_recursive ( $ paths , function ( & $ path ) use ( $ base ) { $ path = "{$base}{$path}" ; } ) ; return $ paths ; }
Fix a collection of paths that are relative to this package to be
relative to the base package.

@param array $paths
@return array
Fix a collection of paths that are relative to this package to be relative to the base package .