protected static function lineContinues($lines, $n, $key)
    {
        return
            in_array($key, array('FieldValue', 'FieldValueDefault')) &&
            array_key_exists($n + 1, $lines) &&
            !preg_match('/^Field(Value|ValueDefault|Justification):/', $lines[$n + 1]);
    }
protected static function lineContinues($lines, $n, $key)
    {
        return
            in_array($key, array('FieldValue', 'FieldValueDefault')) &&
            array_key_exists($n + 1, $lines) &&
            !preg_match('/^Field(Value|ValueDefault|Justification):/', $lines[$n + 1]);
    }
protected static function lineContinues ( $ lines , $ n , $ key ) { return in_array ( $ key , array ( 'FieldValue' , 'FieldValueDefault' ) ) && array_key_exists ( $ n + 1 , $ lines ) && ! preg_match ( '/^Field(Value|ValueDefault|Justification):/' , $ lines [ $ n + 1 ] ) ; }
Checks whether the value for the given line number continues on the next
line, i.e. is a multiline string.

This can be the case for 'FieldValue'  and 'FieldValueDefault' keys. To
find the end of the string we don't simply test for /^Field/, as this
would also match multiline strings where a line starts with 'Field'.

Instead we assume that the string is always followed by one of these
keys:

- 'FieldValue:'
- 'FieldValueDefault:'
- 'FieldJustification:'

@param array $lines all lines of the block
@param int $n the 0-based index of the current line
@param string the key for the value. Only 'FieldValue' and
'FieldValueDefault' can span multiple lines
@return bool whether the value continues in line n + 1
Checks whether the value for the given line number continues on the next line i . e . is a multiline string .