mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-21 17:01:19 +01:00
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
@@ -66,7 +66,7 @@ function jsUnEscape($source)
|
||||
$pos++;
|
||||
}
|
||||
}
|
||||
return dol_html_entity_decode($decodedStr, ENT_COMPAT|ENT_HTML5);
|
||||
return dol_html_entity_decode($decodedStr, ENT_COMPAT | ENT_HTML5);
|
||||
}
|
||||
|
||||
|
||||
@@ -2404,9 +2404,9 @@ function phpSyntaxError($code)
|
||||
if (!defined("LF")) define("LF", "\n");
|
||||
if (!defined("CRLF")) define("CRLF", "\r\n");
|
||||
|
||||
$braces=0;
|
||||
$inString=0;
|
||||
foreach (token_get_all('<?php ' . $code) as $token) {
|
||||
$braces = 0;
|
||||
$inString = 0;
|
||||
foreach (token_get_all('<?php '.$code) as $token) {
|
||||
if (is_array($token)) {
|
||||
switch ($token[0]) {
|
||||
case T_CURLY_OPEN:
|
||||
@@ -2455,7 +2455,7 @@ function phpSyntaxError($code)
|
||||
$code[2] = (int) $code[2];
|
||||
$code = $code[2] <= $braces
|
||||
? array($code[1], $code[2])
|
||||
: array('unexpected $end' . substr($code[1], 14), $braces);
|
||||
: array('unexpected $end'.substr($code[1], 14), $braces);
|
||||
} else $code = array('syntax error', 0);
|
||||
} else {
|
||||
ob_end_clean();
|
||||
|
||||
Reference in New Issue
Block a user