mirror of https://github.com/rectorphp/rector.git
22 lines
538 B
PHP
22 lines
538 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202209\Symplify\EasyParallel\FileSystem;
|
|
|
|
use RectorPrefix202209\Symplify\SmartFileSystem\SmartFileInfo;
|
|
final class FilePathNormalizer
|
|
{
|
|
/**
|
|
* @param SmartFileInfo[] $fileInfos
|
|
* @return string[]
|
|
*/
|
|
public function resolveFilePathsFromFileInfos(array $fileInfos) : array
|
|
{
|
|
$filePaths = [];
|
|
foreach ($fileInfos as $fileInfo) {
|
|
$filePaths[] = $fileInfo->getRelativeFilePathFromCwd();
|
|
}
|
|
return $filePaths;
|
|
}
|
|
}
|