*
* Operations are given as an associative array, with members:
* type: One of delete, set, append or insert (required)
*
* Operations are given as an associative array, with members:
* type: One of delete, set, append or insert (required)
// Has it got a comma already?
if ( strpos( $lastEltPath, '@extra' ) === false && !$lastEltInfo['hasComma'] ) {
// No comma, insert one after the value region
// Has it got a comma already?
if ( strpos( $lastEltPath, '@extra' ) === false && !$lastEltInfo['hasComma'] ) {
// No comma, insert one after the value region
$this->replaceSourceRegion( $end - 1, $end - 1, ',' );
}
$this->replaceSourceRegion( $end - 1, $end - 1, ',' );
}
$textToInsert = "$indent$value,";
} else {
list( $indent, $arrowIndent ) =
$textToInsert = "$indent$value,";
} else {
list( $indent, $arrowIndent ) =
$textToInsert = "$indent$value,";
} else {
list( $indent, $arrowIndent ) =
$textToInsert = "$indent$value,";
} else {
list( $indent, $arrowIndent ) =
}
$path = $this->pathInfo[$pathName];
if ( $path['valueStartByte'] === false || $path['valueEndByte'] === false ) {
}
$path = $this->pathInfo[$pathName];
if ( $path['valueStartByte'] === false || $path['valueEndByte'] === false ) {
* If the specified path is not found or is not an array, it will return false.
*/
function findLastArrayElement( $path ) {
* If the specified path is not found or is not an array, it will return false.
*/
function findLastArrayElement( $path ) {
* If the specified path is not found or is not an array, it will return false.
*/
function findFirstArrayElement( $path ) {
* If the specified path is not found or is not an array, it will return false.
*/
function findFirstArrayElement( $path ) {
$arrowIndentLength = $arrowPos - $pos - $indentLength - strlen( $key );
if ( $arrowIndentLength > 0 ) {
$arrowIndent = str_repeat( ' ', $arrowIndentLength );
$arrowIndentLength = $arrowPos - $pos - $indentLength - strlen( $key );
if ( $arrowIndentLength > 0 ) {
$arrowIndent = str_repeat( ' ', $arrowIndentLength );