Completed
Push — master ( 7f628d...d6e62b )
by Chad
17s
created
tests/Filter/StringsTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
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()
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      */
329 329
     public function concatObjectValue()
330 330
     {
331
-        $this->assertSame('prefix' . __FILE__ . 'suffix', Strings::concat(new \SplFileInfo(__FILE__), 'prefix', 'suffix'));
331
+        $this->assertSame('prefix'.__FILE__.'suffix', Strings::concat(new \SplFileInfo(__FILE__), 'prefix', 'suffix'));
332 332
     }
333 333
 
334 334
     /**
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
             ],
399 399
             'closure provides words' => [
400 400
                 'value' => 'doe a deer, a female deer',
401
-                'words' => function () {
401
+                'words' => function() {
402 402
                     return ['doe', 'deer'];
403 403
                 },
404 404
                 'replacement' => '-',
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                 'words' => [],
438 438
                 'replacement' => '',
439 439
                 'exception' => FilterException::class,
440
-                'message' => "Value '" . var_export(['bad', 'input'], true) . "' is not a string",
440
+                'message' => "Value '".var_export(['bad', 'input'], true)."' is not a string",
441 441
             ],
442 442
             'invalid words argument' => [
443 443
                 'value' => 'some string',
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             ],
449 449
             'invalid return from callable words argument' => [
450 450
                 'value' => 'some string',
451
-                'words' => function () {
451
+                'words' => function() {
452 452
                     return 'this is also not valid';
453 453
                 },
454 454
                 'replacement' => '',
Please login to merge, or discard this patch.
src/Filter/Strings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.