$style .=
sprintf(' title="%d%s characters"',
$attr['length'
],
$attr['binary'
] ? ' binary or non-UTF-8' : ''
);
} elseif ('note' ===
$style && 0 <
($attr['depth'
] ?? 0
) && false !==
$c =
strrpos($value, '\\'
)) { $style .= ' title=""';
$attr +=
[ 'ellipsis' => \
strlen($value) -
$c,
'ellipsis-type' => 'note',
'ellipsis-tail' => 1,
];
} elseif ('protected' ===
$style) { $style .= ' title="Protected property"';
} elseif ('meta' ===
$style &&
isset($attr['title'
])) { $style .=
sprintf(' title="%s"',
esc($this->
utf8Encode($attr['title'
])));
} elseif ('private' ===
$style) { $style .=
sprintf(' title="Private property defined in class: `%s`"',
esc($this->
utf8Encode($attr['class'
])));
} if (isset($attr['ellipsis'
])) { $class = 'sf-dump-ellipsis';
if (isset($attr['ellipsis-type'
])) { $class =
sprintf('"%s sf-dump-ellipsis-%s"',
$class,
$attr['ellipsis-type'
]);
} $label =
esc(substr($value, -
$attr['ellipsis'
]));
$style =
str_replace(' title="', " title=\"
$v\n",
$style);