rest_mediatekdocuments

Lines
in package

FinalYes

Table of Contents

Methods

process()  : array<string|int, string>
Process the array of lines of environment variables.
__construct()  : void
This class is a singleton.
isCommentOrWhitespace()  : bool
Determine if the line in the file is a comment or whitespace.
looksLikeMultilineStart()  : bool
Determine if the given line can be the start of a multiline variable.
looksLikeMultilineStop()  : bool
Determine if the given line can be the start of a multiline variable.
multilineProcess()  : array{: bool, : string, : string[]}
Used to make all multiline variable process.

Methods

process()

Process the array of lines of environment variables.

public static process(array<string|int, string> $lines) : array<string|int, string>

This will produce an array of raw entries, one per variable.

Parameters
$lines : array<string|int, string>
Return values
array<string|int, string>

__construct()

This class is a singleton.

private __construct() : void
Tags
codeCoverageIgnore

isCommentOrWhitespace()

Determine if the line in the file is a comment or whitespace.

private static isCommentOrWhitespace(string $line) : bool
Parameters
$line : string
Return values
bool

looksLikeMultilineStart()

Determine if the given line can be the start of a multiline variable.

private static looksLikeMultilineStart(string $line) : bool
Parameters
$line : string
Return values
bool

looksLikeMultilineStop()

Determine if the given line can be the start of a multiline variable.

private static looksLikeMultilineStop(string $line, bool $started) : bool
Parameters
$line : string
$started : bool
Return values
bool

multilineProcess()

Used to make all multiline variable process.

private static multilineProcess(bool $multiline, string $line, array<string|int, string> $buffer) : array{: bool, : string, : string[]}
Parameters
$multiline : bool
$line : string
$buffer : array<string|int, string>
Return values
array{: bool, : string, : string[]}

        
On this page

Search results