@@ -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 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | private static function validateIfObjectIsAString($value) |
190 | 190 | { |
191 | 191 | if (!is_string($value)) { |
192 | - throw new FilterException("Value '" . var_export($value, true) . "' is not a string"); |
|
192 | + throw new FilterException("Value '".var_export($value, true)."' is not a string"); |
|
193 | 193 | } |
194 | 194 | } |
195 | 195 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | { |
198 | 198 | try { |
199 | 199 | $value = ( |
200 | - function (string $str) : string { |
|
200 | + function(string $str) : string { |
|
201 | 201 | return $str; |
202 | 202 | } |
203 | 203 | )($value); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $replacement = mb_substr($replacement, 0, 1); |
240 | 240 | |
241 | 241 | return array_map( |
242 | - function ($word) use ($replacement) { |
|
242 | + function($word) use ($replacement) { |
|
243 | 243 | if ($replacement === '') { |
244 | 244 | return ''; |
245 | 245 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | public function __construct() |
171 | 171 | { |
172 | - $this->data = [1,2,3,4,5]; |
|
172 | + $this->data = [1, 2, 3, 4, 5]; |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | public function __toString() |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | public function concatObjectValue() |
374 | 374 | { |
375 | 375 | $this->assertSame( |
376 | - 'prefix' . __FILE__ . 'suffix', |
|
376 | + 'prefix'.__FILE__.'suffix', |
|
377 | 377 | Strings::concat(new \SplFileInfo(__FILE__), 'prefix', 'suffix') |
378 | 378 | ); |
379 | 379 | } |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | ], |
490 | 490 | 'closure provides words' => [ |
491 | 491 | 'value' => 'doe a deer, a female deer', |
492 | - 'words' => function () { |
|
492 | + 'words' => function() { |
|
493 | 493 | return ['doe', 'deer']; |
494 | 494 | }, |
495 | 495 | 'replacement' => '-', |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | 'words' => [], |
529 | 529 | 'replacement' => '', |
530 | 530 | 'exception' => FilterException::class, |
531 | - 'message' => "Value '" . var_export(['bad', 'input'], true) . "' is not a string", |
|
531 | + 'message' => "Value '".var_export(['bad', 'input'], true)."' is not a string", |
|
532 | 532 | ], |
533 | 533 | 'invalid words argument' => [ |
534 | 534 | 'value' => 'some string', |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | ], |
540 | 540 | 'invalid return from callable words argument' => [ |
541 | 541 | 'value' => 'some string', |
542 | - 'words' => function () { |
|
542 | + 'words' => function() { |
|
543 | 543 | return 'this is also not valid'; |
544 | 544 | }, |
545 | 545 | 'replacement' => '', |