░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
vps.doorgans.com
LOCATION:
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Testing/Fixture
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: FixtureSplitter.php
<?php declare (strict_types=1); namespace Rector\Testing\Fixture; use RectorPrefix202411\Nette\Utils\FileSystem; /** * @api */ final class FixtureSplitter { public static function containsSplit(string $fixtureFileContent) : bool { return \strpos($fixtureFileContent, "-----\n") !== \false || \strpos($fixtureFileContent, "-----\r\n") !== \false; } /** * @return array<int, string> */ public static function split(string $filePath) : array { $fixtureFileContents = FileSystem::read($filePath); return self::splitFixtureFileContents($fixtureFileContents); } /** * @return array<int, string> */ public static function splitFixtureFileContents(string $fixtureFileContents) : array { $fixtureFileContents = \str_replace("\r\n", "\n", $fixtureFileContents); return \explode("-----\n", $fixtureFileContents); } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 FixtureFileFinder.php
PHP
559 B
2024-11-08 13:59
EDIT
📄 FixtureFileUpdater.php
PHP
870 B
2024-11-08 13:59
EDIT
📄 FixtureSplitter.php
PHP
914 B
2024-11-08 13:59
EDIT
📄 FixtureTempFileDumper.php
PHP
734 B
2024-11-08 13:59
EDIT