REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.27 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/prompts/src/Themes/Default/Concerns/InteractsWithStrings.php
Text
Base64
<?php namespace Laravel\Prompts\Themes\Default\Concerns; trait InteractsWithStrings { /** * Get the length of the longest line. * * @param array<string> $lines */ protected function longest(array $lines, int $padding = 0): int { return max( $this->minWidth, count($lines) > 0 ? max(array_map(fn ($line) => mb_strwidth($this->stripEscapeSequences($line)) + $padding, $lines)) : null ); } /** * Pad text ignoring ANSI escape sequences. */ protected function pad(string $text, int $length, string $char = ' '): string { $rightPadding = str_repeat($char, max(0, $length - mb_strwidth($this->stripEscapeSequences($text)))); return "{$text}{$rightPadding}"; } /** * Strip ANSI escape sequences from the given text. */ protected function stripEscapeSequences(string $text): string { // Strip ANSI escape sequences. $text = preg_replace("/\e[^m]*m/", '', $text); // Strip Symfony named style tags. $text = preg_replace("/<(info|comment|question|error)>(.*?)<\/\\1>/", '$2', $text); // Strip Symfony inline style tags. return preg_replace("/<(?:(?:[fb]g|options)=[a-z,;]+)+>(.*?)<\/>/i", '$1', $text); } }
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
DrawsBoxes.php
1.67 KB
lrw-rw-rw-
2025-09-17 06:52:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DrawsScrollbars.php
1.76 KB
lrw-rw-rw-
2025-09-17 06:52:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
error_log
696 B
lrw-r--r--
2026-04-26 10:18:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithStrings.php
1.27 KB
lrw-rw-rw-
2025-09-17 06:52:54
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).