update rm deadcode
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
final class PowerShellEscaper
|
||||
{
|
||||
public static function singleQuote(string $value): string
|
||||
{
|
||||
return "'" . str_replace("'", "''", $value) . "'";
|
||||
}
|
||||
|
||||
public static function encodedCommand(string $script): string
|
||||
{
|
||||
return base64_encode(mb_convert_encoding($script, 'UTF-16LE', 'UTF-8'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user