Edit File by line
/home/zeestwma/ajeebong.../wp-conte.../plugins/code-sni.../vendor/typistte.../imposter/src
File: StringUtil.php
<?php
[0] Fix | Delete
[1] Fix | Delete
declare(strict_types=1);
[2] Fix | Delete
[3] Fix | Delete
namespace TypistTech\Imposter;
[4] Fix | Delete
[5] Fix | Delete
class StringUtil
[6] Fix | Delete
{
[7] Fix | Delete
public static function addTrailingSlash(string $string): string
[8] Fix | Delete
{
[9] Fix | Delete
return rtrim($string, '/\\') . '/';
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
public static function ensureDoubleBackwardSlash(string $string): string
[13] Fix | Delete
{
[14] Fix | Delete
$parts = explode('\\', $string);
[15] Fix | Delete
$nonEmptyParts = array_filter($parts, function ($part) {
[16] Fix | Delete
return ! empty($part);
[17] Fix | Delete
});
[18] Fix | Delete
[19] Fix | Delete
return implode('\\\\', $nonEmptyParts) . '\\\\';
[20] Fix | Delete
}
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function