@@ -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); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $value = self::castObjectToValueIfApplicable($value); |
| 47 | 47 | |
| 48 | 48 | if (!is_string($value)) { |
| 49 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
| 49 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | self::validateStringLength($value, $minLength, $maxLength); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | if (empty($delimiter)) { |
| 71 | 71 | throw new \InvalidArgumentException( |
| 72 | - "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string" |
|
| 72 | + "Delimiter '".var_export($delimiter, true)."' is not a non-empty string" |
|
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | private static function castObjectToValueIfApplicable(string $value) : string |
| 94 | 94 | { |
| 95 | 95 | if (is_object($value) && method_exists($value, '__toString')) { |
| 96 | - $value = (string)$value; |
|
| 96 | + $value = (string) $value; |
|
| 97 | 97 | } |
| 98 | 98 | return $value; |
| 99 | 99 | } |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | |
| 169 | 169 | public function __construct() |
| 170 | 170 | { |
| 171 | - $this->data = [1,2,3,4,5]; |
|
| 171 | + $this->data = [1, 2, 3, 4, 5]; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | public function __toString() |