ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Testing/Fixture
/
opt
cpanel
ea-wappspector
vendor
rector
rector
src
Testing
Fixture
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
FixtureFileFinder.php
559 B
chmod
View
DL
Edit
Rename
Delete
FixtureFileUpdater.php
870 B
chmod
View
DL
Edit
Rename
Delete
FixtureSplitter.php
914 B
chmod
View
DL
Edit
Rename
Delete
FixtureTempFileDumper.php
734 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Testing/Fixture/FixtureFileUpdater.php
<?php declare (strict_types=1); namespace Rector\Testing\Fixture; use RectorPrefix202411\Nette\Utils\FileSystem; final class FixtureFileUpdater { /** * @api */ public static function updateFixtureContent(string $originalContent, string $changedContent, string $fixtureFilePath) : void { if (!\getenv('UPDATE_TESTS') && !\getenv('UT')) { return; } $newOriginalContent = self::resolveNewFixtureContent($originalContent, $changedContent); FileSystem::write($fixtureFilePath, $newOriginalContent, null); } private static function resolveNewFixtureContent(string $originalContent, string $changedContent) : string { if ($originalContent === $changedContent) { return $originalContent; } return $originalContent . '-----' . \PHP_EOL . $changedContent; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply