@@ -23,7 +23,7 @@ |
||
23 | 23 | public static function filter($value) : string |
24 | 24 | { |
25 | 25 | if (!is_string($value)) { |
26 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
26 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | $filteredEmail = filter_var($value, FILTER_VALIDATE_EMAIL); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | if (!is_string($value)) { |
34 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
34 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $filteredUrl = filter_var($value, FILTER_VALIDATE_URL); |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | if (is_object($value) && method_exists($value, '__toString')) { |
48 | - $value = (string)$value; |
|
48 | + $value = (string) $value; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | if (!is_string($value)) { |
52 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
52 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | $valueLength = strlen($value); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | if (empty($delimiter)) { |
86 | 86 | throw new \InvalidArgumentException( |
87 | - "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string" |
|
87 | + "Delimiter '".var_export($delimiter, true)."' is not a non-empty string" |
|
88 | 88 | ); |
89 | 89 | } |
90 | 90 |