final class PhpHelpers

internal  
 

PHP helpers.

Methods

static string
reformatCode(string $source)

Optimizes code readability.

static string
dump(mixed $value, bool $multiline = false)

No description

static string
optimizeEcho(string $source)

No description

static int|float|null
decodeNumber(string $str, $base = null)

No description

static string
decodeEscapeSequences(string $str, string|null $quote)

No description

static void
checkCode(string $phpBinary, string $code, string $name)

No description

Details

at line 24
static string reformatCode(string $source)

Optimizes code readability.

Parameters

string $source

Return Value

string

at line 101
static string dump(mixed $value, bool $multiline = false)

No description

Parameters

mixed $value
bool $multiline

Return Value

string

at line 121
static string optimizeEcho(string $source)

No description

Parameters

string $source

Return Value

string

at line 159
static int|float|null decodeNumber(string $str, $base = null)

No description

Parameters

string $str
$base

Return Value

int|float|null

at line 181
static string decodeEscapeSequences(string $str, string|null $quote)

No description

Parameters

string $str
string|null $quote

Return Value

string

at line 229
static void checkCode(string $phpBinary, string $code, string $name)

No description

Parameters

string $phpBinary
string $code
string $name

Return Value

void