Puli\Manager\Repository\Mapping\SyncRepositoryPath::getEnabledFilesystemPaths PHP Method

getEnabledFilesystemPaths() private method

private getEnabledFilesystemPaths ( $repositoryPath )
    private function getEnabledFilesystemPaths($repositoryPath)
    {
        // Get a copy so that we can remove the entries that we processed
        // already
        $inMappings = $this->mappings->toArray();
        $outMappings = array();
        $filesystemPaths = array();
        $this->filterEnabledMappings($repositoryPath, $inMappings, $outMappings);
        foreach ($outMappings as $mappingPath => $mappingsByModule) {
            foreach ($mappingsByModule as $moduleName => $mapping) {
                $filesystemPaths[$moduleName][$mappingPath] = $mapping->getFilesystemPaths();
            }
        }
        if (!$filesystemPaths) {
            return array();
        }
        // Sort primary keys (module names)
        $sortedNames = $this->overrideGraph->getSortedModuleNames(array_keys($filesystemPaths));
        $filesystemPaths = array_replace(array_flip($sortedNames), $filesystemPaths);
        // Sort secondary keys (repository paths)
        foreach ($filesystemPaths as $moduleName => $pathsByModule) {
            ksort($filesystemPaths[$moduleName]);
        }
        return $filesystemPaths;
    }