@@ -381,10 +381,10 @@ private function getOuterChange(string $oldString, string $newString): array
381
381
*
382
382
* The index of the last element of the array is always returned.
383
383
*
384
- * @param array $blocks The array which keeps the changes for the HTML renderer.
385
- * @param string $tag Kind of difference.
386
- * @param integer $lineInOld Start of block in "old".
387
- * @param integer $lineInNew Start of block in "new".
384
+ * @param array $blocks The array which keeps the changes for the HTML renderer.
385
+ * @param string $tag Kind of difference.
386
+ * @param int $lineInOld Start of block in "old".
387
+ * @param int $lineInNew Start of block in "new".
388
388
*
389
389
* @return int The index of the last element.
390
390
*/
@@ -437,7 +437,7 @@ function ($line) {
437
437
// Convert special characters to HTML entities
438
438
$ strings = array_map (
439
439
function ($ line ) {
440
- return htmlspecialchars ($ line , ENT_NOQUOTES , ' UTF-8 ' );
440
+ return htmlspecialchars ($ line , ENT_NOQUOTES );
441
441
},
442
442
$ strings
443
443
);
@@ -447,7 +447,7 @@ function ($line) {
447
447
$ line = preg_replace_callback (
448
448
'/(^[ \0\1]*)/ ' ,
449
449
function ($ matches ) {
450
- return str_replace (' ' , " " , $ matches [0 ]);
450
+ return str_replace (' ' , ' ' , $ matches [0 ]);
451
451
},
452
452
$ line
453
453
);
0 commit comments