HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/www/printmanager/vendor/filament/support/src/Commands/Concerns/CanIndentStrings.php
<?php

namespace Filament\Support\Commands\Concerns;

trait CanIndentStrings
{
    protected function indentString(string $string, int $level = 1): string
    {
        return implode(
            PHP_EOL,
            array_map(
                fn (string $line) => ($line !== '') ? (str_repeat('    ', $level) . "{$line}") : '',
                explode(PHP_EOL, $string),
            ),
        );
    }
}