REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.87 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/StaticReflection/DynamicSourceLocatorDecorator.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\StaticReflection; use Rector\FileSystem\FileAndDirectoryFilter; use Rector\FileSystem\FilesystemTweaker; use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider; /** * @see https://phpstan.org/blog/zero-config-analysis-with-static-reflection * @see https://github.com/rectorphp/rector/issues/3490 */ final class DynamicSourceLocatorDecorator { /** * @readonly * @var \Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider */ private $dynamicSourceLocatorProvider; /** * @readonly * @var \Rector\FileSystem\FileAndDirectoryFilter */ private $fileAndDirectoryFilter; /** * @readonly * @var \Rector\FileSystem\FilesystemTweaker */ private $filesystemTweaker; public function __construct(DynamicSourceLocatorProvider $dynamicSourceLocatorProvider, FileAndDirectoryFilter $fileAndDirectoryFilter, FilesystemTweaker $filesystemTweaker) { $this->dynamicSourceLocatorProvider = $dynamicSourceLocatorProvider; $this->fileAndDirectoryFilter = $fileAndDirectoryFilter; $this->filesystemTweaker = $filesystemTweaker; } /** * @param string[] $paths */ public function addPaths(array $paths) : void { if ($paths === []) { return; } $paths = $this->filesystemTweaker->resolveWithFnmatch($paths); $files = $this->fileAndDirectoryFilter->filterFiles($paths); $this->dynamicSourceLocatorProvider->addFiles($files); $directories = $this->fileAndDirectoryFilter->filterDirectories($paths); $this->dynamicSourceLocatorProvider->addDirectories($directories); } public function isPathsEmpty() : bool { return $this->dynamicSourceLocatorProvider->isPathsEmpty(); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DynamicSourceLocatorDecorator.php
1.87 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).