Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
code-snippets
/
vendor
/
typisttech
/
imposter
/
src
/
/home/ariannadhf/www/wp-content/plugins/code-snippets/vendor/typisttech/imposter/src/StringUtil.php
<?php declare(strict_types=1); namespace TypistTech\Imposter; class StringUtil { public static function addTrailingSlash(string $string): string { return rtrim($string, '/\\') . '/'; } public static function ensureDoubleBackwardSlash(string $string): string { $parts = explode('\\', $string); $nonEmptyParts = array_filter($parts, function ($part) { return ! empty($part); }); return implode('\\\\', $nonEmptyParts) . '\\\\'; } }