mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 03:19:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
2002
vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php
vendored
2002
vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php
vendored
File diff suppressed because it is too large
Load Diff
1539
vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php
vendored
1539
vendor/nikic/php-parser/lib/PhpParser/Parser/Php7.php
vendored
File diff suppressed because it is too large
Load Diff
@@ -951,12 +951,15 @@ abstract class PrettyPrinterAbstract
|
||||
* @param string $append
|
||||
*/
|
||||
protected function safeAppend(string &$str, string $append) {
|
||||
// $append must not be empty in this function
|
||||
if ($str === "") {
|
||||
$str = $append;
|
||||
return;
|
||||
}
|
||||
|
||||
if ($append === "") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->labelCharMap[$append[0]]
|
||||
|| !$this->labelCharMap[$str[\strlen($str) - 1]]) {
|
||||
$str .= $append;
|
||||
|
||||
Reference in New Issue
Block a user