class Helpers

internal  
 

Latte helpers.

Properties

static array $emptyElements

Methods

static callable
checkCallback($callable)

Checks callback.

static string
optimizePhp($source, $lineLength = 80)

Removes unnecessary blocks of PHP code.

static string|null
getSuggestion(array $items, $value)

Finds the best suggestion.

Details

at line 28
static callable checkCallback($callable)

Checks callback.

Parameters

$callable

Return Value

callable

at line 42
static string optimizePhp($source, $lineLength = 80)

Removes unnecessary blocks of PHP code.

Parameters

$source
$lineLength

Return Value

string

at line 118
static string|null getSuggestion(array $items, $value)

Finds the best suggestion.

Parameters

array $items
$value

Return Value

string|null