|
@@ -83,7 +83,7 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments); |
|
84
|
84
|
} |
|
85
|
85
|
|
|
86
|
|
- throw new \BadMethodCallException('Method does not exist: ' . $name); |
|
|
86
|
+ throw new \BadMethodCallException('Method does not exist: '.$name); |
|
87
|
87
|
} |
|
88
|
88
|
|
|
89
|
89
|
/** |
|
@@ -375,12 +375,12 @@ discard block |
|
|
block discarded – undo |
|
375
|
375
|
$regExSpecialScript = '/<(script)(?<attr>[^>]*)>(?<content>.*)<\/\1>/isU'; |
|
376
|
376
|
$htmlTmp = \preg_replace_callback( |
|
377
|
377
|
$regExSpecialScript, |
|
378
|
|
- static function ($scripts) { |
|
|
378
|
+ static function($scripts) { |
|
379
|
379
|
if (empty($scripts['content'])) { |
|
380
|
380
|
return $scripts[0]; |
|
381
|
381
|
} |
|
382
|
382
|
|
|
383
|
|
- return '<script' . $scripts['attr'] . '>' . str_replace('</', '<\/', $scripts['content']) . '</script>'; |
|
|
383
|
+ return '<script'.$scripts['attr'].'>'.str_replace('</', '<\/', $scripts['content']).'</script>'; |
|
384
|
384
|
}, |
|
385
|
385
|
$html |
|
386
|
386
|
); |
|
@@ -409,14 +409,14 @@ discard block |
|
|
block discarded – undo |
|
409
|
409
|
self::$domReplaceHelper['orig'] |
|
410
|
410
|
); |
|
411
|
411
|
|
|
412
|
|
- $DOM_REPLACE__HELPER_CACHE['tmp']['html_wrapper__start'] = '<' . self::$domHtmlWrapperHelper . '>'; |
|
413
|
|
- $DOM_REPLACE__HELPER_CACHE['tmp']['html_wrapper__end'] = '</' . self::$domHtmlWrapperHelper . '>'; |
|
|
412
|
+ $DOM_REPLACE__HELPER_CACHE['tmp']['html_wrapper__start'] = '<'.self::$domHtmlWrapperHelper.'>'; |
|
|
413
|
+ $DOM_REPLACE__HELPER_CACHE['tmp']['html_wrapper__end'] = '</'.self::$domHtmlWrapperHelper.'>'; |
|
414
|
414
|
|
|
415
|
415
|
$DOM_REPLACE__HELPER_CACHE['orig']['html_wrapper__start'] = ''; |
|
416
|
416
|
$DOM_REPLACE__HELPER_CACHE['orig']['html_wrapper__end'] = ''; |
|
417
|
417
|
|
|
418
|
|
- $DOM_REPLACE__HELPER_CACHE['tmp']['html_special_script__start'] = '<' . self::$domHtmlSpecialScriptHelper; |
|
419
|
|
- $DOM_REPLACE__HELPER_CACHE['tmp']['html_special_script__end'] = '</' . self::$domHtmlSpecialScriptHelper . '>'; |
|
|
418
|
+ $DOM_REPLACE__HELPER_CACHE['tmp']['html_special_script__start'] = '<'.self::$domHtmlSpecialScriptHelper; |
|
|
419
|
+ $DOM_REPLACE__HELPER_CACHE['tmp']['html_special_script__end'] = '</'.self::$domHtmlSpecialScriptHelper.'>'; |
|
420
|
420
|
|
|
421
|
421
|
$DOM_REPLACE__HELPER_CACHE['orig']['html_special_script__start'] = '<script'; |
|
422
|
422
|
$DOM_REPLACE__HELPER_CACHE['orig']['html_special_script__end'] = '</script>'; |