PHP 8.2.31
Preview: NewLineSplitter.php Size: 431 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Util/NewLineSplitter.php

<?php

declare (strict_types=1);
namespace Rector\Util;

use RectorPrefix202411\Nette\Utils\Strings;
final class NewLineSplitter
{
    /**
     * @var string
     * @see https://regex101.com/r/qduj2O/4
     */
    private const NEWLINES_REGEX = "#\r?\n#";
    /**
     * @return string[]
     */
    public static function split(string $content) : array
    {
        return Strings::split($content, self::NEWLINES_REGEX);
    }
}

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
466 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.59 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.13 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.40 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
431 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.63 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
665 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
294 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).