@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace luya\web\jsonld; |
4 | 4 | |
5 | 5 | use luya\helpers\ObjectHelper; |
6 | -use yii\base\InvalidConfigException; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * JsonLd Rating. |
@@ -72,9 +72,9 @@ |
||
72 | 72 | // Encode 50% of characters including several that always should be encoded |
73 | 73 | if (in_array($email[$i], $alwaysEncode) || mt_rand(1, 100) < 50) { |
74 | 74 | if (mt_rand(0, 1)) { |
75 | - $result .= '&#' . ord($email[$i]) . ';'; |
|
75 | + $result .= '&#'.ord($email[$i]).';'; |
|
76 | 76 | } else { |
77 | - $result .= '&#x' . dechex(ord($email[$i])) . ';'; |
|
77 | + $result .= '&#x'.dechex(ord($email[$i])).';'; |
|
78 | 78 | } |
79 | 79 | } else { |
80 | 80 | $result .= $email[$i]; |