@@ -39,7 +39,7 @@ |
||
| 39 | 39 | private static function validateString($value) |
| 40 | 40 | { |
| 41 | 41 | if (!is_string($value)) { |
| 42 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
| 42 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | private static function validateString($value) |
| 40 | 40 | { |
| 41 | 41 | if (!is_string($value)) { |
| 42 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
| 42 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | if (empty($delimiter)) { |
| 66 | 66 | throw new \InvalidArgumentException( |
| 67 | - "Delimiter '" . var_export($delimiter, true) . "' is not a non-empty string" |
|
| 67 | + "Delimiter '".var_export($delimiter, true)."' is not a non-empty string" |
|
| 68 | 68 | ); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -113,21 +113,21 @@ discard block |
||
| 113 | 113 | private static function checkIfScalarAndConvert(&$value) |
| 114 | 114 | { |
| 115 | 115 | if (is_scalar($value)) { |
| 116 | - $value = (string)$value; |
|
| 116 | + $value = (string) $value; |
|
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | private static function checkIfObjectAndConvert(&$value) |
| 121 | 121 | { |
| 122 | 122 | if (is_object($value) && method_exists($value, '__toString')) { |
| 123 | - $value = (string)$value; |
|
| 123 | + $value = (string) $value; |
|
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | private static function validateIfObjectIsAString($value) |
| 128 | 128 | { |
| 129 | 129 | if (!is_string($value)) { |
| 130 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
| 130 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
| 131 | 131 | } |
| 132 | 132 | } |
| 133 | 133 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | try { |
| 137 | 137 | $value = ( |
| 138 | - function (string $str) : string { |
|
| 138 | + function(string $str) : string { |
|
| 139 | 139 | return $str; |
| 140 | 140 | } |
| 141 | 141 | )($value); |
@@ -168,7 +168,7 @@ discard block |
||
| 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() |
@@ -305,6 +305,6 @@ discard block |
||
| 305 | 305 | */ |
| 306 | 306 | public function concatObjectValue() |
| 307 | 307 | { |
| 308 | - $this->assertSame('prefix' . __FILE__ . 'suffix', Strings::concat(new \SplFileInfo(__FILE__), 'prefix', 'suffix')); |
|
| 308 | + $this->assertSame('prefix'.__FILE__.'suffix', Strings::concat(new \SplFileInfo(__FILE__), 'prefix', 'suffix')); |
|
| 309 | 309 | } |
| 310 | 310 | } |