REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 734 B
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Testing/Fixture/FixtureTempFileDumper.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\Testing\Fixture; use RectorPrefix202411\Nette\Utils\FileSystem; /** * @api used in tests */ final class FixtureTempFileDumper { /** * @var string */ public const TEMP_FIXTURE_DIRECTORY = '/rector/tests_fixture_'; public static function dump(string $fileContents, string $suffix = 'php') : string { // the "php" suffix is important, because that will hook into \Rector\Application\FileProcessor\PhpFileProcessor $temporaryFileName = \sys_get_temp_dir() . self::TEMP_FIXTURE_DIRECTORY . '/' . \md5($fileContents) . '.' . $suffix; FileSystem::write($temporaryFileName, $fileContents, null); return $temporaryFileName; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
FixtureFileFinder.php
559 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
FixtureFileUpdater.php
870 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
FixtureSplitter.php
914 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
FixtureTempFileDumper.php
734 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
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).