This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Lines::looksLikeMultilineStop( string $line, bool $started )
Determine if the given line can be the start of a multiline variable.
Parameters
- $line
-
(Required)
- $started
-
(Required)
Return
(bool)
Source
File: vendor/vlucas/phpdotenv/src/Lines.php
private static function looksLikeMultilineStop($line, $started)
{
if ($line === '"') {
return true;
}
$seen = $started ? 0 : 1;
foreach (self::getCharPairs(str_replace('\\\\', '', $line)) as $pair) {
if ($pair[0] !== '\\' && $pair[1] === '"') {
$seen++;
}
}
return $seen > 1;
}