final 1.2.3 - file sh per generare zip

This commit is contained in:
2026-06-07 20:56:38 +02:00
parent f9c1268466
commit cd10d100ec
2442 changed files with 158 additions and 325423 deletions
-25
View File
@@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
namespace Laravel\Pao;
/**
* @internal
*
* @codeCoverageIgnore
*/
final class OutputCleaner
{
public static function clean(string $output): string
{
$output = (string) preg_replace('/\e\[[0-9;]*[A-Za-z]/', '', $output);
$output = (string) preg_replace('/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/', '', $output);
$output = (string) preg_replace('/\x{FFFD}/u', '', $output);
$output = (string) preg_replace('/[─━│┌┐└┘├┤┬┴┼▓░▒═║╔╗╚╝╠╣╦╩╬➜▶►⚠✖✔●◆■▪→←↑↓▕⨯✕]+/u', '', $output);
$output = (string) preg_replace('/\.{3,}/', '..', $output);
$output = (string) preg_replace('/[ \t]+/', ' ', $output);
return (string) preg_replace('/\n\s*\n/', "\n", $output);
}
}