2
0
forked from Wavyzz/dolibarr

Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2020-10-31 13:32:18 +00:00
parent 92bdcd017d
commit 7f52920716
1177 changed files with 82257 additions and 82262 deletions

View File

@@ -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();