mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -87,7 +87,7 @@ class CodeHelper extends Helper
|
||||
} elseif ('array' === $item[0]) {
|
||||
$formattedValue = sprintf('<em>array</em>(%s)', \is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
|
||||
} elseif ('string' === $item[0]) {
|
||||
$formattedValue = sprintf("'%s'", htmlspecialchars($item[1], ENT_QUOTES, $this->getCharset()));
|
||||
$formattedValue = sprintf("'%s'", htmlspecialchars($item[1], \ENT_QUOTES, $this->getCharset()));
|
||||
} elseif ('null' === $item[0]) {
|
||||
$formattedValue = '<em>null</em>';
|
||||
} elseif ('boolean' === $item[0]) {
|
||||
@@ -95,7 +95,7 @@ class CodeHelper extends Helper
|
||||
} elseif ('resource' === $item[0]) {
|
||||
$formattedValue = '<em>resource</em>';
|
||||
} else {
|
||||
$formattedValue = str_replace("\n", '', var_export(htmlspecialchars((string) $item[1], ENT_QUOTES, $this->getCharset()), true));
|
||||
$formattedValue = str_replace("\n", '', var_export(htmlspecialchars((string) $item[1], \ENT_QUOTES, $this->getCharset()), true));
|
||||
}
|
||||
|
||||
$result[] = \is_int($key) ? $formattedValue : sprintf("'%s' => %s", $key, $formattedValue);
|
||||
@@ -119,7 +119,7 @@ class CodeHelper extends Helper
|
||||
$finfo = new \finfo();
|
||||
|
||||
// Check if the file is an application/octet-stream (eg. Phar file) because highlight_file cannot parse these files
|
||||
if ('application/octet-stream' === $finfo->file($file, FILEINFO_MIME_TYPE)) {
|
||||
if ('application/octet-stream' === $finfo->file($file, \FILEINFO_MIME_TYPE)) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
@@ -153,7 +153,7 @@ class CodeHelper extends Helper
|
||||
*/
|
||||
public function formatFile($file, $line, $text = null)
|
||||
{
|
||||
$flags = ENT_QUOTES | ENT_SUBSTITUTE;
|
||||
$flags = \ENT_QUOTES | \ENT_SUBSTITUTE;
|
||||
|
||||
if (null === $text) {
|
||||
$file = trim($file);
|
||||
|
||||
Reference in New Issue
Block a user