Completed
Branch master (0c18cc)
by Aurimas
06:20
created
src/Tests/CodeBlocks/String/StringTruncateTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
     {
17 17
         $out = [];
18 18
 
19
-        $out[] = ['foo', 3, '…', 'foo' ];
20
-        $out[] = ['foo bar', 3, '...', 'foo...' ];
21
-        $out[] = ['foo bar', 5, '---', 'foo ---' ];
19
+        $out[] = ['foo', 3, '…', 'foo'];
20
+        $out[] = ['foo bar', 3, '...', 'foo...'];
21
+        $out[] = ['foo bar', 5, '---', 'foo ---'];
22 22
 
23 23
         return $out;
24 24
     }
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionSortByTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
         $out[] = [
20 20
             [1, 2, 3, 4, 5, 6],
21
-            function ($item) {
21
+            function($item) {
22 22
                 return sin($item);
23 23
             },
24 24
             'asort',
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         $out[] = [
51 51
             [1, 2, 3, 4, 5, 6],
52
-            function ($item) {
52
+            function($item) {
53 53
                 return sin($item);
54 54
             },
55 55
             'arsort',
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionInvokeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $out[] = [
28 28
             [
29 29
                 ['a', 'b', 'c'],
30
-                function ($item, $prefix) {
30
+                function($item, $prefix) {
31 31
                     return $prefix . $item;
32 32
                 },
33 33
                 '1'
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionMaxTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                         'size'  => 3
33 33
                     ]
34 34
                 ],
35
-                function ($item) {
35
+                function($item) {
36 36
                     return $item['size'];
37 37
                 }
38 38
             ],
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionLastNTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function testLast()
17 17
     {
18
-        $array  = range(1,9);
18
+        $array  = range(1, 9);
19 19
 
20 20
         $result = Funct\collection_last_n($array, 3);
21 21
         $this->assertEquals([7, 8, 9], $result);
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionFirstNTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     public function testFirst()
17 17
     {
18
-        $array  = range(1,9);
18
+        $array  = range(1, 9);
19 19
 
20 20
         $result = Funct\collection_first_n($array, 3);
21 21
         $this->assertEquals([1, 2, 3], $result);
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionForEveryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $expected = ['coo_bar', 'bar_coo', 'coo', 'bar'];
25 25
 
26
-        $result = Funct\collection_for_every($values, function ($value, $what, $with) {
26
+        $result = Funct\collection_for_every($values, function($value, $what, $with) {
27 27
             return str_replace($what, $with, $value);
28 28
         }, ['foo', 'coo']);
29 29
     }
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionMinTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                         'size'  => 3
33 33
                     ]
34 34
                 ],
35
-                function ($item) {
35
+                function($item) {
36 36
                     return $item['size'];
37 37
                 }
38 38
             ],
Please login to merge, or discard this patch.
src/Tests/CodeBlocks/Collection/CollectionPartitionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $out[] = [
20 20
             [
21 21
                 [0, 1, 2, 3, 4, 5],
22
-                function ($item) {
22
+                function($item) {
23 23
                     return ($item % 2) === 0;
24 24
                 }
25 25
             ],
Please login to merge, or discard this patch.