Completed
Pull Request — master (#7)
by Harry
01:42
created
src/Collection/ImmutableCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-     * @param mixed $value
33
+     * @param string $value
34 34
      *
35 35
      * @return ImmutableCollection
36 36
      */
Please login to merge, or discard this patch.
src/Container/ContainerInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -31,6 +31,7 @@
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param callable $fn
34
+     * @return void
34 35
      */
35 36
     public function forAll(callable $fn);
36 37
 
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 namespace Graze\DataStructure\Container;
15 15
 
16
+use ArrayAccess;
16 17
 use Graze\DataStructure\Exception\RegisteredKeyException;
17 18
 use IteratorAggregate;
18
-use ArrayAccess;
19 19
 
20 20
 interface ContainerInterface extends IteratorAggregate, ArrayAccess
21 21
 {
Please login to merge, or discard this patch.
test/unit/Collection/ImmutableCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         $coll = new ImmutableCollection(['foo', 'bar', 'baz']);
109 109
         $result = $coll->reduce(function ($carry, $item) {
110
-            return $carry . $item;
110
+            return $carry.$item;
111 111
         });
112 112
 
113 113
         $this->assertEquals('foobarbaz', $result);
Please login to merge, or discard this patch.
test/unit/Collection/CollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         $coll = new Collection(['foo', 'bar', 'baz']);
103 103
         $result = $coll->reduce(function ($carry, $item) {
104
-            return $carry . $item;
104
+            return $carry.$item;
105 105
         });
106 106
 
107 107
         $this->assertEquals('foobarbaz', $result);
Please login to merge, or discard this patch.
src/Container/ImmutableContainer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param string $key
32
-     * @param mixed  $value
32
+     * @param string  $value
33 33
      *
34 34
      * @return ContainerInterface
35 35
      */
Please login to merge, or discard this patch.