REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 986 B
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/extension-installer/src/LocalFilesystem.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\RectorInstaller; use UnexpectedValueException; final class LocalFilesystem implements \Rector\RectorInstaller\Filesystem { public function isFile(string $pathToFile) : bool { return \is_file($pathToFile); } public function hashFile(string $pathToFile) : string { $fileHash = \md5_file($pathToFile); if ($fileHash === \false) { throw new UnexpectedValueException(\sprintf('Could not hash file %s', $pathToFile)); } return $fileHash; } public function writeFile(string $pathToFile, string $contents) : void { $bytes = \file_put_contents($pathToFile, $contents); if ($bytes === \false) { throw new UnexpectedValueException(\sprintf('Could not write contents to file %s', $pathToFile)); } } public function hashEquals(string $hash, string $content) : bool { return $hash === \md5($content); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Filesystem.php
353 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratedConfig.php
1.21 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
LocalFilesystem.php
986 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Plugin.php
1.45 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
PluginInstaller.php
3.93 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).