Completed
Branch master (0c18cc)
by Aurimas
06:20
created
src/CodeBlocks/Collection/CollectionMerge.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 /**
8 8
  * collection_merge function
9 9
  *
10
- * @param array|Traversable $a
11
- * @param array|Traversable $b
10
+ * @param string[] $a
11
+ * @param string[] $b
12 12
  *
13 13
  * @author Aurimas Niekis <[email protected]>
14 14
  */
Please login to merge, or discard this patch.
src/CodeBlocks/String/StringCount.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * Count the occurences of substring in string
7 7
  *
8 8
  * @param string $input
9
- * @param string $prefix
9
+ * @param string $substring
10 10
  *
11 11
  * @return int
12 12
  *
Please login to merge, or discard this patch.
src/CodeBlocks/String/StringStrip.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  *
8 8
  * @param string $string
9 9
  * @param string $string1
10
- * @param string $string2
11 10
  *
12 11
  * @return string
13 12
  * @author Aurimas Niekis <[email protected]>
Please login to merge, or discard this patch.
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.